I have a web application that consists of Website and REST API. Should I host them on the same server or should I host them on different servers? By "server" I mean a server cluster - several servers behind load balancer.
API is mostly inbound traffic, website - mostly outbound.
If it matters - hosted on Rackspace and/or AWS.
Here is what I see so far:
Benefits of having Website and REST API on the same server
- Simple deployment
- Simple scaling - something is slow - just launch another instance
- Single load balancer configuration
- Simple monitoring
- Simple, simple, simple ...
- Effective use of full duplex network (API - inbound, website - outbound)
Benefits of splitting
- API overload will not affect website load time
- Detailed monitoring (I will know which component uses resources at this moment)
Any comments?
Thank you
Alexander