asynchronous - Can I mix Ktor with Exposed? -


i writing service using ktor , exposed orm apparently isn't async. coming python world , there using blocking orm async io library sin may block users in thread. same rule apply in kotlin? creating bad architecture?

exposed uses thread local storage keep transaction instance accessible implementation , avoid passing along every function call. since transaction dsl function executing synchronously , not release thread reusable ktor other calls there shouldn't issues using them together.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -