Ok - before I begin let me give you some context. The multi-tenant app (or SaaS product) in question is Hashnode.dev. It's a new blogging platform that lets developers run a personal blog for free without worrying about ads or paywalls. We launched t...
sandeep.dev
Sandeep Panda Does Hashnode use the same method for the custom domain now? I see that domains are now managed by Vercel.
What exactly are the nodes that you've mentioned here. Is there any library you use for them. Are these nodes in-memory storage only.
Awesome! Thanks for sharing. I have question. How do you handle the creation of subdomain per user and how it works when they point the IP in their domain? is there any configuration in the server?
Where are you buying those boxes? Are they bare-metal? Any recommendation for them? Thanks
I just got off a 2 hour support call to AWS. I am facing a similar scenario: white-label multi-tenant social network platform, need to handle multiple externally mapped domains and SSL. Their recommendation was as you outlined: generate multiple SSL certs along with multiple CloudFront distros. Naturally leading to an outcome of say 1000 customers equals 1000 ACM certs and 1000 CloudFront distributions pointing to the same S3 bucket (sheesh invalidating cache should be fun). FYI i had to request the limit for both be increased.
I also came across traefik.io which looks to have auto SSL handling. I guess if this were easy everyone would be doing it haha.
Excellent post, looking for more articles like this from Hashnode team
One concern though, 4 servers are enough for a CDN? Are you getting <100ms all around the world?
I've used a similar technique to speed up WordPress too - 1secblog.com/caching-html-pages-at-the-edge-using…
Awesome read, That is really informative. Thanks for sharing.
Maaiz Elahi
Sandeep Panda How did you prevented DDoS attacks?