# Flowable Rest with read replicas of Postgres DB

**URL:** <https://forum.flowable.org/t/flowable-rest-with-read-replicas-of-postgres-db/5770>\
**Category:** Uncategorized\
**Created:** [April 4, 2020, 4:56pm UTC](https://forum.flowable.org/t/flowable-rest-with-read-replicas-of-postgres-db/5770 "2020-04-04T16:56:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prem911](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/prem911/32/975_2.png) [@prem911](https://forum.flowable.org/u/prem911)\
**Post date:** [April 4, 2020, 4:56pm UTC](https://forum.flowable.org/t/flowable-rest-with-read-replicas-of-postgres-db/5770/1 "2020-04-04T16:56:15Z")

</div>

Hi, Is it possible for us configure Rest engine to connect to read and write replicas of Postgres?

Read replica will be say useful for all the heavy duty calls for historical, completed process, etc.

If this is not currently present, how do I size a Postgres DB for rest engine? ( In AWS, should I be choosing a t3.large or a m4.large or something else )

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [April 13, 2020, 11:15am UTC](https://forum.flowable.org/t/flowable-rest-with-read-replicas-of-postgres-db/5770/2 "2020-04-13T11:15:50Z")

</div>

> [@prem911](#):
>
> Hi, Is it possible for us configure Rest engine to connect to read and write replicas of Postgres?

Isn’t this a matter of setting up the db connection / proxy properly (and using the right jdbc url)?

> [@prem911](#):
>
> how do I size a Postgres DB for rest engine?

That fully depends on number of runtime instances and expected concurrent usage.

---

<div class="post-metadata">

**Author:** ![prem911](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/prem911/32/975_2.png) [@prem911](https://forum.flowable.org/u/prem911)\
**Post date:** [April 13, 2020, 7:23pm UTC](https://forum.flowable.org/t/flowable-rest-with-read-replicas-of-postgres-db/5770/3 "2020-04-13T19:23:43Z")

</div>

Hi Joram,  
Thanks for the reply. Makes it more clear for me now.

So, to reiterate, in a simplistic arrangement, I can have 2 process engines called say processRead and processWrite respectively.

processRead is connected to the read replica of say postgres. My proxy will be connecting to processRead for all read APIs.

Similarly, my proxy will be connecting to processWrite for all the write APIs.

Thanks

-Prem
