@miguelcoba
Elixir and Elm programmer. eBook writer
I write about Elixir, Elm, Software Development, and eBook writing.
Nothing here yet.
Hi Manuel, that's certainly a way to do it asynchronously and without blocking our main process. It is a valid way to do it for sure. Most of the implementations that send data to external monitoring systems, like sentry or appsignal, do this using a GenServer that buffers the data and also doesn't block the main process. After a while, the genserver sends the accumulated data to the monitoring service. Of course it could just send each event every time it happens too. But as you correctly say, the principal thing to have in mind is to do it asynchronously. Have a nice day! BTW, today I publish the second part of this series!
Thank you very much, Chris. That's excellent feedback. All those were new to me and I am sure for a lot of readers too. I'll fix the typos you mention and I'll keep the others for a future edition of the book. Having them here they can read them and benefit from your tips. Have an excellent day!