grassrootseconomics / cic-ussd

A USSD client implementation that interfaces with the community inclusion currencies custodial system.
GNU Affero General Public License v3.0
1 stars 2 forks source link

Implement a durable consumer #28

Closed mango-habanero closed 1 year ago

mango-habanero commented 1 year ago

Refactor the ephemeral subscription pattern used in the nats plugin and add a durable consumer that implements push subscriptions.

mango-habanero commented 1 year ago

Nats consumer blocks abruptly and unblocks on restart

mango-habanero commented 1 year ago

Switched to a callback pattern for message processing, and also discovered that the handling of Postgres connections was the cause of the blocking in the server.