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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -