4 ms·
Just putting this on a vps or cheap dedicated server with 16gb ram would've led to sub-ms response times at much lower costs (if you don't get Azure and Cloudfl
by dx034 9y ago
Just putting this on a vps or cheap dedicated server with 16gb ram would've led to sub-ms response times at much lower costs (if you don't get Azure and Cloudflare for free like him). At those response speeds, scalability is also not really an issue if you cache aggressively at the edge.
Argos is then nice to have but not really necessary. If the server responds back <1ms, those 30% saved RTT are probably not detectable for the user.
- eropple 9y agoI'm not sure that you quite realize that Troy's intention here is to eventually be soaking a whole lot of zeroes with this. Add on to that that, if people are relying on this as a service, it had better not go down under any remotely plausible circumstances, and some growth-hacker's dedicated server from Hetzner or whatever is unsuitable. Edge caching only blunts sufficiently this if everybody's searching for the same passwords and proving that that's the case is a burden you have not shouldered. To that end, "just use a VPS or a cheap dedicated server" sounds a whole lot like the middlebrow thing we're supposed to not be fans of around here.
- m4lvin 9y ago> Edge caching only blunts sufficiently this if everybody's searching for the same passwords AFAIK caching already kicks in when people check different passwords that have same first five characters in their hash.
- eropple 9y agoSorry, you're right, I should have been clearer. The bigger concern is that caching doesn't replace fault tolerance and rolling your own disaster recovery. I didn't mean to suggest that caching was not being done or would not be helpful. A million keys would be pretty uniformly dispersed; intuitively it seems like you'd need to have a lot more traffic than he's currently got to the point where caching reliably soaks enough load off of "a VPS or cheap dedicated server" that you can afford to have the server blow up--because servers blow up. "A VPS or cheap dedicated server" is YOLO stuff. Not something you do when you want other people to rely on you.
- dx034 9y agoYou can set up 3 VPS and use Cloudflare's load balancing or a solution by someone like DigitalOcean? That'll still be cheaper than using Lambdas and block storage.
- deelowe 9y ago> Troy's intention here is to eventually be soaking a whole lot of zeroes this this huh?
- eropple 9y agoSorry, shorthand common in my neck of the woods. Used for any Thing per Your Favorite Time Unit, measured logarithmically. In this case, requests-per-second. (Edit: ah, typo. s/this this/with this. Clearer?)
- pbhjpbhj 9y agoSorry, I still don't understand it. Could you write out deelowe's quoted sentence, above, as clearly as you're able?
- timdorr 9y ago> I'm not sure that you quite realize that Troy's intention here is to eventually be soaking a whole lot of zeroes with this. Troy's goal is to get this used by a lot of people with a large number of requests per second (so, a number with a lot of zeros in it)
- deleted 9y ago[deleted]
- deleted 9y ago[deleted]
- 33W 9y ago@pbhjpbhj - I believe the meaning of the sentence is that Troy Hunt is expecting/planning for a few orders of magnitude of growth. "Soak a few zeros" for example going from 1,000 calls per second to 1,000,000 calls per second.
- optimuspaul 9y ago
- dx034 9y agoIf you use Cloudflare, they should still handle attacks and caching. For the origin server, I can't imagine any scenario where you'd get a lot of growth from the immediate attention. How are more than a few thousand requests per second realistic? It's not as if the whole world would suddenly constantly check passwords. And if you use his API for 3rd party services it'd make more sense to open source it so that others can use a local copy. > To that end, "just use a VPS or a cheap dedicated server" sounds a whole lot like the middlebrow thing we're supposed to not be fans of around here. I know that we're supposed to all be fans of AWS and everything as a service. But in reality I found simple VPS (can be Hetzner, OVH, AWS, Google, whatever) to be faster, cheaper and less prone to downtime (as most downtime comes from software rather than hardware anyway).