Open nelsonic opened 7 years ago
Can I also have this one?
@leordev we first need to "benchmark" the Filesystem version of the script, but yeah, would be good to attempt to use GenServer. 👍
note: we still need to save the data to disk after the Http response to ensure that data is safe if server crashes. 💾
About the save part, I'd do it in an async fashion after I already give the count response to the user...
I did not understand about the filesystem script benchmark though... Can you please elaborate it a lil bit?
https://robots.thoughtbot.com/make-phoenix-even-faster-with-a-genserver-backed-key-value-store