Vibe.d and shared data synchronization

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


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 
(, 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

Kind regards,

More information about the Digitalmars-d-learn mailing list