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

Embed Nats server in gitea #33821

Open
TheFox0x7 opened this issue Mar 7, 2025 · 0 comments
Open

Embed Nats server in gitea #33821

TheFox0x7 opened this issue Mar 7, 2025 · 0 comments
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@TheFox0x7
Copy link
Contributor

Feature Description

Since gitea and nats are both written in go, gitea can embed nats service and have it always available regardless of environment.

Why is it beneficial?

  • ability to have a single provider for a feature set regardless of environment (standalone binary, container, cluster all have it available with the same feature set)
  • Simplification of queues - nats can handle them replacing need for multiple providers in the first place.
  • PubSub channel is already there if needed in the future
  • Various services and system might benefit from having a request/reply channel
  • JetStream features can be enabled if needed providing an even wider feature set out of the box
  • Common system between clustered gitea and standalone

Potential issues I've identified so far:

  • Migration from current user setups
  • Added memory usage is unknown
  • New binary size is unknown
  • Redis is also used for cache so this won't be removing a dependency (aside from queue only ones but they aren't as big)

It's a very low priority idea but I figured I should write it down so there's a place for discussions on this. I've seen it mentioned in relation to preparing gitea for clusters before.

Screenshots

No response

@TheFox0x7 TheFox0x7 added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

1 participant