Can I make a fully non-blocking backend application with http-kit and core.async?

99封情书 提交于 2019-12-02 15:09:46

With the async approach you get to send the data to the client when its ready, instead of blocking a thread the whole time its being prepared.

For http-kit, you should be using an async handler described in the documentation. After delegating the request to an async handler in a proper way, you can implement it however you like using core.async or something else.

Async Handler documentation is here: http://http-kit.org/server.html#channel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!