4 ms·
It's all written in Go + Postgres. Nothing else. Not sure what TPS is. No problem with scaling. Stack Overflow runs on a single machine. Use a fast compiled l
by sim_card_map 7y ago
It's all written in Go + Postgres. Nothing else. Not sure what TPS is.
No problem with scaling.
Stack Overflow runs on a single machine. Use a fast compiled language and a simple stack. No need in $6k/mo AWS bills which are the fashion these days.
- lappet 7y agoOh wow, does lightsail come with postgres? Is it like a PaaS on top of AWS? Also TPS means transactions per second
- AC_Fan 7y agoLightSail is like DigitalOcean/Linode/Vultr, simple fixed cost VMs and DBs only.
- lappet 7y agoDoes the $3.5 per month include DB as well?
- sim_card_map 7y agoYou get a system that you can run anything on.
- erik_seaberg 7y agoYou can run a database in the same instance, but all your tables have to fit in 0.6 TB or less, and hardware failures will cause downtime and possibly corruption.
- lappet 7y agoDB & API on the same instance doesn't sound ideal
- regularfry 7y ago"TPS" is usually transactions per second.
- NicoJuicy 7y agoSO doesn't run on a single machine, they have a very detailed blog post around their architecture.
- sim_card_map 7y agoOk, 2 web servers, 2 db servers back in 2013, one of the most visited sites out there. https://nickcraver.com/blog/2013/11/22/what-it-takes-to-run-stack-overflow/#core-hardware https://nickcraver.com/blog/2013/11/22/what-it-takes-to-run-...
- NicoJuicy 7y ago1 - you said it as was it was current, it is not. 2 - still, in 2013 is not 1 server. It's also more than you said now ( add a tag engine server, elastic search, redis, load balancer) and an insane amount of memory on a lot of those servers. Even then, the stack exchange network is more than that. Saying 1 server, as you did, is not correct and it never was :)
- haggy 7y agoYour response gives me zero confidence that you know what you're talking about. Having "hundreds of thousands" of users tells us nothing (which is why TPS was brought up). Also if you do have a high concurrent user count then there's no way there have been "no issues scaling". There are always scale points in systems that actually grow.
- sim_card_map 7y agoSince 2015, no issues. You can choose not to believe me.
- inapis 7y agoStack Overflow is a read heavy website. They can get away with caching most of their requests in POPs around the world which will deal with the vast majority of traffic. Having thousands of users is a meaningless metric for web operations. Are those concurrent users? Are those read/write heavy users? Are those mixed usage users? There are a lot of qualifiers that need to be attached to that question to allow any meaningful discourse.
- iomcr 7y agoI'm about to try the same thing, but with crystal + postgres + nginx + cloudflare + serverless, so we'll see.
- slrainka 7y agoTransactions Per Second. Always looking to optimize on cost for AWS. But it's a tradeoff of something or the other. Light Sail sounds like a great solution for some use-cases though. We run this for a Global/North American airline and easily hit 1k TPS just on API and event processing traffic. The spikes can show up anywhere in the multitude of processes due to various business events (high reservation traffic to irregular operations due to weather, pandemics etc.) Performance and reliability wise, serverless has been a very predictable consistent experience. Costs are another story.