Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nice project!! About auth #2

Open
kamikazebr opened this issue Jun 28, 2021 · 1 comment
Open

Nice project!! About auth #2

kamikazebr opened this issue Jun 28, 2021 · 1 comment

Comments

@kamikazebr
Copy link

Hi! Nice project!

i'm using and testing it
i saw one TODO in messageListener method to do authentication.

It is about the websocketprovider room password? Or something else?

I'm testing now about scale the pods, why is using PostgresQL? Its possible use MongoDB what you think about?

PS: i can help with some code too

@kapv89
Copy link
Owner

kapv89 commented Aug 2, 2021

Hi @kamikazebr I seem to have lost the notification I received for this issue, and have just now seen it.

regarding the TODO in messageListener method for authentication, I have already done that, but in a private repo

So in this private repo, I have the crdt-ws-server interacting with a REST API using a standard API auth token. If you haven't already figure this out, can help you with this :)

As for why PostgreSQL, and not MongoDB, I dropped using MongoDB when I realized that max document size in mongo-db is 16MB, whereas I needed to support a max of 100MB of JSON as per my estimates. Sure in binary format which YJS uses, 100MB of JSON would be compressed, but 16MB is too low. I checked PostgreSQL limits and it's around 1GB per row with a text field, in which I store b64-encoded updates. This works out well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants