--
You received this message because you are subscribed to the Google Groups "phoenix-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-talk...@googlegroups.com.
To post to this group, send email to phoeni...@googlegroups.com.
Visit this group at https://groups.google.com/group/phoenix-talk.
To view this discussion on the web visit https://groups.google.com/d/msgid/phoenix-talk/634a61af-b5ed-46bf-85e0-e4c02d5be3f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/phoenix-talk/CAKshaqVSUPLHCXrJMACsHjTr7JT0mg2B1PxX-xgEFFDK3v%2BVzA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/phoenix-talk/67f755eb-04a1-4caf-a213-ab46256f8806%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "phoenix-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-talk...@googlegroups.com.
To post to this group, send email to phoeni...@googlegroups.com.
Visit this group at https://groups.google.com/group/phoenix-talk.
To view this discussion on the web visit https://groups.google.com/d/msgid/phoenix-talk/87a8jer0t0.fsf%40sunshine.fritz.box.
To view this discussion on the web visit https://groups.google.com/d/msgid/phoenix-talk/98ba6651-b83e-448d-824c-45bb9c8b2a25%40googlegroups.com.
My suggestion wasn't to do everything in the foreground. It was merely that the technical reasons for doing it in the background are less prominent. UX should still be a primary driver of the decision, but in my experience there's some cargo culting around background work that isn't necessary.
HTTP is a wonderful synchronous protocol. There are massive benefits in maintaining that synchronous behavior. It provides back pressure to the client as well as greater guarantees on confirmation of execution. These are important aspects of UX that often have complicated solutions due to technical limitations.
BEAM is sufficiently robust and powerful as to allow is to model systems and processes in intuitive ways. For example, a call center might choose to put you on hold for a short period of time or they might offer to call you back. There are valid reasons for each approach that are deeply rooting in the caller's experience. Being able to model an interaction like that somewhat directly in software is exactly what erlang is built for. (Cue a Joe Armstrong rant about "breaking the laws of physics").
Anyway, that's the crux of my advice here: don't let technical constraints on other platforms skew your requirements. Step back and focus on the actual interaction you are modelling and in my experience a simpler approach exists that was otherwise unavailable due to technical limitations.
- Peter
To view this discussion on the web visit https://groups.google.com/d/msgid/phoenix-talk/CAB-Ba_Y5fYeu0O%2B-eif12Ezndmwe%2BZ1SYZyZvMj7ev2afrC%2Bng%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/phoenix-talk/CAOMhEnx8u44zwupm3SNoRW6FKPGtQP7iXbikmVkeo04%2B5%2Bd90w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/phoenix-talk/CAGAFNp%3D0g_W9UL3dDcJJbimOUpxmKkiT5ORAg%2B_Kq9vrcncCPQ%40mail.gmail.com.
I feel like some in depth examples will be more useful to everyone. I'm going to put together a blog post showing how to do many standard (and non standard) tasks purely in Elixir with OTP. Stay tuned!
To view this discussion on the web visit https://groups.google.com/d/msgid/phoenix-talk/CAHTvwu0DuAW9tSFy38fGdF0Mkdq2vh1MCT_hTAzW2SV6_K9SOA%40mail.gmail.com.