Hi, I am using PostgreSQL and Ecto. Is there good solution for sharding?
I guess it depends on your use case but have a look at this hex package: ecto_instashard.
If it doesn't do exactly what you want then you might be able to study the code and create something that does what you want.
PostgreSQL has a number of sharding front-ends as well, all listed on their wiki.