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
Post a Comment