my Azure's serverless architecture is composed from some producers, a service bus, un azure function and a Postgres DB (see the below picture).
The Postgres DB is a legacy requirement, I cannot change it.
The following is the operations flow:
- The producers send a message with a temporal frequency towards service bus (about 9000 messagges/minute). Every producers sends a single message.
- The azure functions consumes the message and insert a row into the Postgres DB
In order to avoid a strong load of DB and open a lot of connections I would to aggregate the messages into the function and inset them by bulk insert. Could I work well with a durable function (entity function)?
Can you help me please? Best Regards