javascript - MEAN Stack - Should I separate servers? -


i'm working on personal project mean stack , appreciate advice on route should take when setting server architecture. performance , scalibility important me since build enterprise level web apps in future.

this project image hosting application include front-end, private api, , file storage system.

option 1: on same server

option 2: front-end , private api on same server. file storage on separate server.

option 3: front-end, private api , file storage on own server.

i'm thinking option 2 might best option, love learn have experience in building apps similar architecture.

thanks!

depending upon how scale expecting , how want spend on server infrastructure different cases suitable. try explain best of both world.

  • for services api based, should on infrastructure can scale. reason, in form of servers behind load balancers. scaling takes places based upon traffic type , region. this, industry favorite docker based microservices. comparable solution google app engine.
  • for front-end/ui based stuff, should stored on cdn optimized delivery. cdns maintain application's ui available end users if private api based service slow. cdns cheap , have great impact on end users.
  • for image/files storage, should use blob storage based solution. server hdds ssds these days , cost bunch. disks attached servers hence prone errors or security issues. using blob storage helpful since takes care of redundant , scalable storage along form of security.

with model, make sure files safe , away business logic, end users can access webapp when core service slow, , manage server api/service based scale.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -