Meteor cluster recipe

Today let’s see a recipe to create a Meteor cluster. A few days ago I was in charge of creating a poc, a Meteor cluster. I started reading the meteorhacks:cluster package documentation again. The first thing that I noticed is that with this package I would not to deal with Load Balancers because it turns Meteor…

A very short introduction to ReactiveDict

If you are following the Meteor community news, you probably heard about the proposal of deprecating Session in favor of ReactiveDict. Why? Because using Sessions you are storing data in a single global dictionary without scope or namespace,  exposing yourself to name collisions and reusability problems. So, except for the benefits, using ReactiveDict instead of…

How to build a Meteor package?

 In this post we will see how to create a weather package in a few steps, if you want to see something more complete I recommend the post “writing the package in The Meteor Chef”. The package in this tutorial: RSS2.0 The sources of the package: Github The result : RSS Initial setup. The first…

Latency Compensation

 You know that nasty waiting period between something that you do and the result in your browser? That’s what the Latency Compensation proposes to solve, producing immediate results. As one of the seven principles of Meteor, you have Latency Compensation “almost” for free. Almost … You should be aware of how to program, to use…

Do you know Field Specifiers?

In this post, let’s see an important thing, especially for who is starting with Meteor. ‘Field Specifiers’. First at all, why is ‘Field Specifiers’ so important? Two reasons, security and performance. Security because unless you specify which fields are to be returned, MongoDB will return all of them. It means that clients can see tokens,…

Load files ordering

In this little post we’ll see how load files ordering works in an Meteor application. In fact the rules are quite simple: Templates (.html files) are loaded before anything. Files in the lib directory are loaded then. Files in deeper directories are loaded before. Ordering for files in the same directory is alphabetical. Main. *…

EJSON e DDP

In the previous article (But what’s Meteor?) I made a overview about Meteor, now let’s see a little more of each item of an application Meteor architecture, starting with EJSON and DDP. EJSON EJSON is a JSON extension that supports most types eg Date (Javascript Date), Binary (Javascript Uint8Array or EJSON.newBinary) and user-defined types (EJSOPN.addType),…