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

refactor: move yjs out of api into an app #481

Merged
merged 2 commits into from
Aug 28, 2023

Conversation

lihebi
Copy link
Collaborator

@lihebi lihebi commented Aug 28, 2023

The yjs server was in apps/api folder, but it shares nothing with api server except prisma code. Since #480 extracted prisma into a package, this is a follow-up PR to move yjs code into apps/yjs.

These two servers are also conceptually separate:

  • API server is stateless (thus can have multiple instances for horizontal scalability), while
  • yjs server is stateful because peers must be connected to the same yjs server to sync in real-time.

@lihebi lihebi merged commit 5815b40 into codepod-io:main Aug 28, 2023
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

Successfully merging this pull request may close these issues.

1 participant