mynaparrot / plugNmeet-server

WebRTC based Scalable, High Performance, Open source web conferencing system using Livekit.
https://www.plugnmeet.org
MIT License
278 stars 70 forks source link

db / MQ abstraction #523

Closed gedw99 closed 1 week ago

gedw99 commented 1 month ago

SQLC supports mariadb, as well as SQLite.

https://github.com/sqlc-dev/sqlc/tree/main/examples/authors

https://github.com/mynaparrot/plugnmeet-protocol/blob/main/go.mod#L9 would also need to be adapted.


The same is true for Redis. NATS Jetstream is able to replace redid easily and can run embedded or non embedded or a DC cluster or a Global multi DC global cluster. Its all built in.

gedw99 commented 1 month ago

Hey @jibon57

Let me know if you would like help with this.

The code is very well written, so I thing we can quickly and easily make it DB agnostic.

If its something your not wanting to be done just let me know.

jibon57 commented 1 month ago

Hi,

We've plan to use https://gorm.io/ in near future.

Thanks

gedw99 commented 1 month ago

Hey - GORM will def do the trick and also likely work well with Protobuf non-SQL storage transactions too if you need them.

Any plans to abstract Redis too ? I suggested NATS.

jibon57 commented 1 week ago

https://github.com/mynaparrot/plugNmeet-server/pull/550