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

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -