mookid8000 / Topos

:cyclone: .NET Event Processing library
MIT License
23 stars 5 forks source link

adds postgresql position manager #4

Closed runeanielsen closed 3 years ago

runeanielsen commented 3 years ago

Adds PostgreSql position manager. The solution creates a table named kafka_position inside of the schema topos. It has an composite primary key based on consumer_group, topic and partition. I decided not to use an approach where the schema and table name is defined by the user, since that implementation was not optimal after working on it a bit. If you have any better suggestion to the name of the schema and table please say so and I'll make a new commit with the updated names.

The flow is as follows:

The implementation is based on the MongoDbPositionsManagerConfigurationExtensions and followed the same structure for the unit tests.

runeanielsen commented 3 years ago

Just realized that the naming and such won't work out because Topos is a generic solution, I'll figure something out.

mookid8000 commented 3 years ago

Excellent 👍 it's out as Topos.PostgreSql 0.0.95