We're building a system with heavy real-time write volume and looking for a way to decouple db writes from the user request path.
We're exploring the approach of buffering updated entities in memcached and writing them back to the database asynchronously. The primary problem that we're concerned about is how to ensure that the entity remains in the cache until the background process has a change to write it. Any advice and/or references would be greatly appreciated.