|
|
|
|
|
by wlievens
6732 days ago
|
|
Transaction isolation would be handled like any non-database backed application: use your language and/or library's native thread synchronization features. As for persisting transactions, you could marshall to file the deltas for each transaction, and on regular intervals apply them to the full image to create an up-to-date image. |
|
You may try using a single thread and cooperative multitasking. It helps if your language makes this convenient, e.g., Stackless Python or Scheme:
http://news.ycombinator.com/item?id=45561
Just remember to yield every now and then if you do anything lengthy. Depending on your application, it may not be that bad, and if you don't need anything fancier in the way of scheduling fairness, it makes your life really simple.