odyssey/sources/README.md

25 lines
940 B
Markdown
Raw Normal View History

2017-07-17 10:32:14 +00:00
### Odissey internals
2017-07-17 10:38:28 +00:00
Odissey heavily depends on two libraries, which were originally created during its
development: Machinarium and Shapito.
2017-07-17 10:32:14 +00:00
**Machinarium**
Machinarium extensively used for organization of multi-thread processing and networking IO.
All Odissey threads are run in context of machinarium `machines` - pthreads with coroutine schedulers
placed on top of `epoll(2)`.
Odissey does not directly use or create multi-tasking primitives such as mutexes. All synchronization
is done using message passing and transparently implemented by machinarium.
2017-07-17 10:38:28 +00:00
Repository: [github/machinarium](https://github.yandex-team.ru/pmwkaa/machinarium)
2017-07-17 10:32:14 +00:00
**Shapito**
Shapito provides resizable buffers (streams) and methods for constructing, reading and validating
PostgreSQL protocol requests. All PostgreSQL specific details should be provided by Shapito library.
2017-07-17 10:38:28 +00:00
Repository: [github/shapito](https://github.yandex-team.ru/pmwkaa/shapito).