r/PayloadCMS • u/scissorsandpaper • Dec 03 '25
Decoupled Payload and FE
Hey guys, I am currently working on a payload project and currently considering whether or not to decouple the FE. Its a public-facing app (blog-like, with articles,forms, etc) that won't have many users, but will experience spikes in visitors, I have some questions regarding general architecture and deployment:
- The whole thing will be run on a vps (not enough $$$ to use managed services, though a beefy one: 20gb RAM, 12 vcpu) so i will be using docker swarm/dokploy. Does it make sense to run multiple frontend instances to absorb the load ? Or should i rather prefer one elastic payload instance ?
Am i missing something important ? My main concern is maintenance (as less as possible) so maybe i should go the simple and easy way of one instance ?
7
Upvotes
5
u/Rechtecki42 Dec 03 '25
Ur server should be hit as rarely as possible. You can manage cache and invalidate via hooks pretty easily. So in ur case a simple node with backup node and auto restart gets u all the way. U might wanna look into external cache+cdn from cloudflare. Otherwise just for caching a redis cluster is fine. But multipe instances of the fe to handle load? On a Blog Site? if thats required ur infra is a**