Add a tinydb example sharing state

This example is intended to showcase sharing state between all connected clients
on a server, for example a key/value store (in-memory database)

Closes #257
This commit is contained in:
Alex Crichton
2017-09-23 12:22:34 -07:00
parent fbd0a9e5f1
commit 0868b97832
2 changed files with 211 additions and 0 deletions
+2
View File
@@ -44,6 +44,8 @@ A high level description of each example is:
* `compress` - an echo-like server where instead of echoing back everything read
it echos back a gzip-compressed version of everything read! All compression
occurs on a CPU pool to offload work from the event loop.
* `tinydb` - an in-memory database which shows sharing state between all
connected clients, notably the key/value store of this database.
If you've got an example you'd like to see here, please feel free to open an
issue. Otherwise if you've got an example you'd like to add, please feel free