Вы находитесь на странице: 1из 5

Scaling Parse Server | back4app blog 11/28/17, 9)42 PM

(https://www.back4app.com/)

Back4App Blog (https://blog.back4app.com/)


Product (https://www.back4app.com/product/parse-server)

Community (https://groups.google.com/forum/#!forum/back4app)
Pricing (https://www.back4app.com/pricing)

Blog (https://blog.back4app.com/)
Parse Server Made Simple (https://blog.back4app.com/)
Docs (https://www.back4app.com/docs/pages/back4app/welcome) FAQ (https://www.back4app.com/faq)

Sign In (https://www.back4app.com/#signin)

SIGN UP (HTTPS://WWW.BACK4APP.COM/#SIGNUP)

Scaling Parse Server


LEARN (HTTPS://BLOG.BACK4APP.COM/CATEGORY/LEARN/)

Its been a while since Parse closed down completely in Jan 2017. We take pride in the num-
ber of Parse.com users who have subsequently decided to put their trust in Back4Apps Parse
Server Platform. We want to share with the community some of the lessons weve learned
since this journey begun.

Parse Server was launched as an Open Source version of Parse.com but it has proved a valu-
able resource in many other ways. It provides an excellent NodeJS framework for building
and scaling your App. The app scaling in question is of the major variety at Back4App
weve scaled some apps up to 10.000 Req/s (about 80.000 simultaneous users). All of this is
possible while staying in total control of your backend and avoiding the kind of locks and limi-
tations that come with Black Box solutions.

This experience proves how Parse Server can scale to much more than the 600 req/s that
Parse.com announced on its pricing page (see below), far beyond the limits imposed by
some other black box backends. A number of valuable features ensure that Parse Server is
your best app scaling option. I want to emphasize some of the most important of these
elements.

https://blog.back4app.com/2017/05/26/scaling-parse-server/ Page 1 of 5
Scaling Parse Server | back4app blog 11/28/17, 9)42 PM

1-Scale without major re-engineering


Flexibility to add new modules: As soon as your app grows you need new features to
keep users engaged, or even to improve acquisition, and sometimes a complete backend
platform might not be available. Because Parse Server is an open source solution it allows
you to install a bunch of npm(NodeJS) modules and integrate new APIs accessing more ad-
vanced features.

Vertical x Horizontal Scaling: Parse Server is designed to support trouble-free horizontal


scaling, for example, to share a state between the instances. It allows you to simply create
new identical Parse Server instances to share your app requests processing. This helps you to
find the best balance between vertical scaling that just increases your machine configs, and
horizontal scaling to optimize your performance and costs. For example, you could start with
one instance of Parse Server on a single machine and scale vertically onto a Cloud Platform
while constantly monitoring cost and performance. As soon as your app grows you can create
a copy of these servers and add a load balancer to better distribute the requests.

On the database side, MongoDB also solves the scaling problem. It allows you to start with a
single structure of Mongo DB, and as soon as your app scales you can add a replica set and
then go to a sharded cluster if your app reach unicorn levels.

Optimize your query performance: You can use Parse Server custom app requests to get
the best performance for each app type. If your apps features use a lot of geo-points you can
set these queries to be processed on the secondary machine of your MongoDB structure.

https://blog.back4app.com/2017/05/26/scaling-parse-server/ Page 2 of 5
Scaling Parse Server | back4app blog 11/28/17, 9)42 PM

2-The Parse Server stack is solid


It may look like a challenge at first glance, but the combo Node.js + MongoDBs scalability is
actually quite impressive. Even with Javascripts single threaded nature, Node can take ad-
vantage of multiple cores using the cluster module this allows a developer to create a net-
work of processes with shared ports. To scale-out across multiple machines the developer can
use nginx to load balance received requests across multiple Parse Server instances. In addi-
tion, Nodes site authentication can be efficiently executed using the connect-auth library.
This process avoids some of the common development mistakes and speed is another major
advantage.

MongoDBs scalability is widely questioned, but it has many features that support easy scal-
ing. For example, MongoDB Ops Manager allows the developer to deploy and scale sharded
clusters across multiple data centers (using only one click). Furthermore, MongoDB Ops Man-
ager is really useful to track and measure your performance as it triggers when metrics go out
of range.

If you take MongoDB + Node.js stack in its entirety it becomes clear that it covers all the met-
rics of scalability: cluster scale, performance scale and data scale. Leading companies like EA
Sports, Square Enix and McAfee use the combo, and it is easy to understand why.

3-Deploy Parse Server anywhere


https://blog.back4app.com/2017/05/26/scaling-parse-server/ Page 3 of 5
Scaling Parse Server | back4app blog 11/28/17, 9)42 PM

You can install Parse Server on servers of your choice. This allows you to avoid problems such
as latency, and to use the best infrastructure to fit your needs. If you have the skills you can
build your own infra optimized to your app and host Parse Server. You can also opt for a
Cloud solution if you think it will perform better.

We conclude that the open source model is the key to Parse Servers success. This model re-
ally ensures that you can do wherever you want with the framework as soon as you scale your
app. This goes a long way to explaining why Parse Server has become the most popular
open source framework for building app backends. Currently, the git repository has more
than 26000 stargazers, and the community includes more than 100.000k developers.

Did you like this post? Sign Up Back4App (https://www.back4app.com/) for FREE.

! (https://www.facebook.com/sharer/sharer.php?u=https://blog.back4app.com/2017/05/26/scaling-parse-server/)
" (https://twitter.com/home?status=Check%20out%20this%20article:%20Scaling%20Parse%20Server%20-
%20https://blog.back4app.com/2017/05/26/scaling-parse-server/) # (https://plus.google.com/share?
url=https://blog.back4app.com/2017/05/26/scaling-parse-server/)

Alysson Melo
Im a computer engineer passionate about Startups.

Leave a reply COMMENT

Your email address will not be published.

Nickname ( required )

E-mail ( required )

Website

https://blog.back4app.com/2017/05/26/scaling-parse-server/ Page 4 of 5
Scaling Parse Server | back4app blog 11/28/17, 9)42 PM

QUICKLINKS RECENT POSTS TAGS SECTIONS

Product Serverless Architecture: AWS Lambda vs ABOUT BACK4APP Announcements


(https://www.back4app.com/product/parse- Parse Cloud Code (HTTPS://BLOG.BACK4APP.COM/TAG/ABOUT- (https://blog.back4app.com/category/announce
server) (https://blog.back4app.com/2017/11/16/serverless-
BACK4APP/) back4app/)
architecture-lambda-cloud-code/)
API
Pricing Events
(HTTPS://BLOG.BACK4APP.COM/TAG/API/)
(https://www.back4app.com/pricing) Parse Server: The Best Practices Guide (https://blog.back4app.com/category/events-
(https://blog.back4app.com/2017/11/09/parse- AWS back4app/)
Community server-best-practices/) (HTTPS://BLOG.BACK4APP.COM/TAG/AWS/)
(https://groups.google.com/forum/#!forum/back4app) Learn
BAAS
Continuous Integration with Back4App (https://blog.back4app.com/category/learn/)
Blog (https://blog.back4app.com/) (https://blog.back4app.com/2017/10/24/continuous-
integration-with-back4app/)
Docs
IoT Series: Raspberry Pi with Parse Server
(https://www.back4app.com/docs/pages/back4app/welcome)
Setup
FAQ (https://www.back4app.com/faq) (https://blog.back4app.com/2017/10/16/raspberry-
%
pi-setup/)
(https://www.linkedin.com/company/back4app-
servicos-
Parse Server Made Simple "Back4App
& digitais- ! $
(https://blog.back4app.com/2017/07/21/parse-
(https://twitter.com/back4app)
(https://github.com/back4app)
ltda) (https://www.facebook.com/back4app/)
(https://www.youtube.com/channel/UCUE3mf1bb2ca21Q4YQn_xyQ)
server-made-simple-back4app/)

Copyright 2017. Back4App

https://blog.back4app.com/2017/05/26/scaling-parse-server/ Page 5 of 5

Вам также может понравиться