News for hackers. Stuff that matters.
Re:Comparing Elixir and Go by julienmarie on Friday January 27, 2017 @12:45PM (#13501259)
A simple GenServer ( a OTP behaviour ) linked to an ETS ( erlang in memory data store ) table would do the trick. Basically, It receives by message the inserts, and once the counter reaches x or timer reaches y secs, it inserts in the db. Thinking about it, 20 lines of code is already a bit verbose for it :)
Re:Comparing Elixir and Go by devbug on Friday January 27, 2017 @02:20PM (#13501880)
In Elixir, you can use GenStage.

(In fact, I'm writing a GenStage consumer right now.)

Re:Comparing Elixir and Go by julienmarie on Friday January 27, 2017 @09:13PM (#13504416)
True. But haven't played with it yet. It seems nice and straightforward also.