April 07, 2020 Vibe.d and shared data synchronization | ||||
---|---|---|---|---|
| ||||
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 |
Copyright © 1999-2021 by the D Language Foundation