Hacker News new | past | comments | ask | show | jobs | submit login

His example of replacing the database (stateful) by the network(stateless) for email checking is poor: it makes the implicit supposition that the network is as reliable as the database is.. What happen when one email is lost?



Well it's just supposed to illustrate an idea but in this particular example the same thing happens as if you were using the database version and the email with the unique code in it was lost: the user has to request another email be sent. The difference being you don't have to go clean up all the unused tokens out of the db.


Yes, I realized just after posting this that he was talking about a specific use case (user registration) where the user is the one making the retry in case of failure..

So his example is OK in fact (a variation on the SYN-cookie), I was wrong.


More generally, that process depends on both the database and network, so reliability is already the min(database, network) => network. It makes sense to eliminate a component if you can.


Also the state isn't actually the network, it is somebody's email inbox. Which is just another name for database.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: