3 ms·
Start with one machine but always communicate with services over TCP/IP and not local IPC mechanisms (unix domain sockets). This way everything is easy to split
by staunch 20y ago
Start with one machine but always communicate with services over TCP/IP and not local IPC mechanisms (unix domain sockets). This way everything is easy to split up, just change the IP from "127.0.0.1" to your new database server, etc.
Also stuff like not storing sessions locally (put them in DB) makes it easy to scale out to multiple web servers.
With some decent memory (1GB+) even a single processor server is plenty to run a sizable site. It's really amazingly what can be done from a single machine these days, given their power and the efficiency of the available tools.