Separate database. Data on its own machine
Why stateless servers scale more easily and where the data should live.
System Design
— Load balancers, caches, queues and regions: build a system that holds the load