Vibe.d and shared data synchronization

Christian Köstlin christian.koestlin at gmail.com
Tue Apr 7 06:56:49 UTC 2020


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


More information about the Digitalmars-d-learn mailing list