This article is second part of http://radzserg.com/2017/01/12/how-your-code-should-interact-with-elasticsearch/. But this time we finally going to add some code. And yes we going to work with elixir. But we also want to create our own SDK to work with elasticsearch.
Today I’m going to talk about elixir and phoenix framework. It’s my first post about them and today I would like to tell you how did I solve quite common problem for web development – serving images for your domain models.
In my app – users have avatars, companies have logos and any other model can have referring image. I need to have ability to save images for my models. I want to have ability to save them to AWS S3 and locally(in future I want to add new providers).