I haven’t read it yet, but this should give you some insight in how to architecture an Elixir app:
And this is not a book, but a really popular course by PragDave which you may find interesting: