3 ms·
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
by renox 13y ago
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?
- kinofcain 13y agoWell 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.
- renox 13y agoYes, 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.
- icebraining 13y agoMore 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.
- njharman 13y agoAlso the state isn't actually the network, it is somebody's email inbox. Which is just another name for database.