If you want a change-stream out of your regular MySQL or PostgreSQL database systems, check out Debezium: https://debezium.io/ It basically registers itself as a fake replica server so that it can get updates from the master (like binlog in case of MySQL) and then it forwards those updates to Kafka. The possibilities are endless what you can do with those updates as Kafka consumers.
Rxdb: A reactive database where you can subscribe to the result of a query
31–40 of 126 posts
Re: Rxdb: A reactive database where you can subscribe to the result of a query
#32Re: Rxdb: A reactive database where you can subscribe to the result of a query
#33If you want to subscribe to changes in a Postgresql database, whether produced by your app or not, you can also use Hasura or PostGraphile: https://docs.hasura.io/1.0/graphql/manual/subscriptions/inde... https://www.graphile.org/postgraphile/realtime/
Re: Rxdb: A reactive database where you can subscribe to the result of a query
#34Re: Rxdb: A reactive database where you can subscribe to the result of a query
#35If you want a change-stream out of your regular MySQL or PostgreSQL database systems, check out Debezium: https://debezium.io/ It basically registers itself as a fake replica server so that it can get updates from the master (like binlog in case of MySQL) and then it forwards those updates to Kafka. The possibilities are endless what you can do with those updates as Kafka consumers.
There is a big difference between the changestream of many SQL and noSQL databases, and what RxDB does. Having a stream of changes is useful but not the whole solution. RxDB is capable of using single document changes of a stream and recalculate the new results of an existing query. This saves you not only much IO performance but makes developing much easier. See https://rxdb.info/query-change-detection.html
I suppose this could be the killer feature to warrant using a new database -- because otherwise, from a user point of view, the result is the same.
Re: Rxdb: A reactive database where you can subscribe to the result of a query
#36IMO JavaScript is not compatible with "realtime".
Re: Rxdb: A reactive database where you can subscribe to the result of a query
#37IMO JavaScript is not compatible with "realtime".
Re: Rxdb: A reactive database where you can subscribe to the result of a query
#38If you want to subscribe to changes in a Postgresql database, whether produced by your app or not, you can also use Hasura or PostGraphile: https://docs.hasura.io/1.0/graphql/manual/subscriptions/inde... https://www.graphile.org/postgraphile/realtime/
Re: Rxdb: A reactive database where you can subscribe to the result of a query
#39It's still in very early stages (although I am using it in production for my company)
It's very similar to Debezium (mentioned in another comment), but it's built with Phoenix (elixir), so great for listening via websockets.
Basically the Phoenix server listens to PostgreSQL's replication functionality and converts the byte stream into JSON which it then broadcasts over websockets. This is great since you can scale the Phoenix servers without any additional load on your DB. Also it doesn't require wal2json (a Postgres extension). The beauty of listening to the replication functionality is that you can make changes to your database from anywhere - your api, directly in the DB, via a console etc - and you will still receive the changes via Phoenix.
I still have to document a lot of how it works and how to use it, but if anyone is interested then I will make it a priority over the weekend