digitalmars.D.learn - Vibe.d and shared data synchronization
- =?UTF-8?Q?Christian_K=c3=b6stlin?= (11/11) Apr 06 2020 Hi,
Hi, I wrote a very small vibe.d based URL-shortener. It has an in memory database that is in theory shared across request threads. At the moment I do not distribute over the vibe.d threadpool (https://vibed.org/features#multi-threading), but I would like to. What would be the best way to share this database? Is there something like a many readers, one writer implementation for dlang? Is it somehow enforced by vibe.d so that only shared objects can be shared? The code is located at https://github.com/gizmomogwai/shortened Kind regards, Christian
Apr 06 2020