Nezteb
04/22/2019, 11:01 PMAutoCloseable
thing like a database client that needs to be opened upon request and closed once the response is sent? Or using try-with-resources
?s4nchez
04/22/2019, 11:09 PMs4nchez
04/22/2019, 11:10 PMs4nchez
04/22/2019, 11:11 PMNezteb
04/22/2019, 11:14 PMNezteb
04/22/2019, 11:14 PMs4nchez
04/22/2019, 11:18 PMprivate val users = mutableMapOf<Id, User>()
with a class that deals with set/get/delete of users with the db resource management encapsulated in it.s4nchez
04/22/2019, 11:20 PMusers[newUser.id] = newUser
happens as a transaction)Nezteb
04/22/2019, 11:22 PMs4nchez
04/22/2019, 11:23 PM[...] to prove it out for some architects.Feel free to point them to this channel if they have any particular concerns they want to address as well 😉
Nezteb
04/22/2019, 11:31 PMs4nchez
04/22/2019, 11:58 PMdave
04/23/2019, 4:23 AM