How to replicate 3 MongoDB instances for read, write, reporting then access it from an app?

I did a MongoDB setup over a weekend project several billion years ago:

Hope this can help with some ideas!