Guides¶
These guides help you use Mankai in a real Hanami app after a tutorial gets one feature working. Each guide covers one task. For how a feature works, see the explanation pages linked in each section. For every setting, result, event, and command, see the reference page for the gem.
Jobs¶
Run slow or unreliable work outside the request. To learn how jobs work first, see How jobs work.
- Define and enqueue jobs
- Make jobs reliable
- Schedule and monitor jobs
- Run jobs on the SQL backend
- Test jobs
For every jobs setting, see the mankai-jobs reference and the
mankai-jobs-sql reference.
Cache¶
Reuse expensive results and view fragments. To learn how the cache works first, see How the cache works.
- Cache data and views
- Choose a store and serializer
- Share the cache with the SQL store
- Test the cache
For every cache setting, see the mankai-cache reference and the
mankai-cache-sql reference.
WebSockets¶
Push messages from the server to the browser. To learn how WebSockets work first, see How WebSockets work.
- Build channels and broadcast
- Authenticate connections
- Use the browser client
- Broadcast across processes
- Run and test WebSockets
For every WebSockets setting, see the mankai-sockets reference
and the mankai-sockets-sql reference.
Production¶
Run your app with Mankai in production, and fix common errors.