Chapter 10. Advanced server methods

This chapter covers

  • Understanding the difference between synchronous and asynchronous functions
  • Using asynchronous functions
  • Integrating external APIs
  • Uploading files

Even though Meteor is an isomorphic platform, some things can only be done in certain environments. This chapter introduces you to some advanced concepts on the server. With Node.js running in the background, it’s time to take a closer look at the event loop and the right way to work with asynchronous code. This is especially useful if you plan to have your application communicate with external APIs.

While we’re looking into server specifics, we’ll also discuss a simple way to upload files to the server. The code in this chapter should ...

Get Meteor in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.