background preloader


Facebook Twitter

Meteor Toys. High-Level Guide to Scaling Meteor. The first and highest-impact place to optimize is in softwareland: Mongo schema design, indexing, and oplogSubscription and query design (also try to avoid types of queries that use the polling driver) For server architecture, place at the front a SockJS-safe, sticky-session load balancer that distributes connections to app servers based on least connections.

High-Level Guide to Scaling Meteor

On the application servers: CPU: Run an instance of meteor for each CPU core, since node is single-threaded. Memory: Meteor’s MergeBox is keeping on the server a copy of each client’s client-specific subscription data, so make as many publications as you can general-purpose (as in, they return the same data for all users or a group of users, rather than different data for each user). A floor for your per-client memory usage is how much additional memory your publications take up when another user connects. However, in Arunoda’s experience, CPU is more often the bottleneck than memory. Kudos. Meteor.js Iron Router Filters, Before and After Hooks. Introduction The Meteor.js Iron Router is the one package that helps me so much and is the first one I add in every application.

Meteor.js Iron Router Filters, Before and After Hooks

If you do not know the Iron-Router make sure to learn how to use it because it realy helps so much! The Meteor Chef. Awatson1978/meteor-cookbook. Ericdouglas/Meteor-Learning. App from scratch. Last updated 06 May 2015 A meteor hitting our planet and killing everyone Please note that this tutorial is in Coffeescript.

App from scratch

If you prefer Javascript you can read my new Meteor book here (free to read online - and available as PDF/mobi etc for a fee). In this tutorial we're going to build a simple app that allows you to record the scores of your foosball matches (you play foosball at work right?). Current chapters: Note that you can move you mouse to the left of the browser window to see the menu at any time. Overview of Meteor Firstly we need to define what exactly Meteor is. Well it's kind of a lot of things: Meteor has it's fingers in a lot of the stack pie.

One language Meteor prides itself on allowing developers to write both their front end and back end code in one language: Javascript. Folder names matter to Meteor. Though even outside of these 'server' and 'client' folders, inside your code you can simply write: Preprocessing and Minification Like coding in Coffeescript or Sass? Build Fast & Efficient Meteor apps. Documentation - Meteor. Meteor is an ultra-simple environment for building modern websites.

Documentation - Meteor

What once took weeks, even with the best tools, now takes hours with Meteor. The web was originally designed to work in the same way that mainframes worked in the 70s. The application server rendered a screen and sent it over the network to a dumb terminal. Whenever the user did anything, that server rerendered a whole new screen. This model served the Web well for over a decade. Main Page - Meteorpedia.


Oplog. Tutorials. Packages. Tips, tricks, stackoverflow. Apps. Blaze: easy reactive templating. Extremely easy to use With Blaze, you can write your app with normal-looking templates in the language of your choice.

Blaze: easy reactive templating

You don't need to declare dependencies or write any code to manage how the screen updates: it's all automatic. High performance When your data changes, Blaze makes the smallest possible update to just the piece of the DOM that needs to change or move and batches those updates to minimize page reflows. Since most apps only update a few pieces of data at a time, this approach leads to very efficient updates.

Works well with other libraries Since Blaze only makes the smallest possible updates to the DOM, apps written with Blaze can take advantage of jQuery plugins or other JavaScript libraries that modify elements in your app — including the same elements managed by Blaze. The following examples show how to use Blaze in your apps. Simplest data bindings You spent 1 seconds on this page. You spent <b>{{seconds}}</b> seconds on this page. Hackpad - meteor.