kaf-relay icon indicating copy to clipboard operation
kaf-relay copied to clipboard

Fully refactor the entire codebase.

Open knadh opened this issue 1 year ago • 1 comments

Fully refactor the entire codebase.

  • Split and cleanly separate the main package into relay/producer/source_pool controllers.
  • Restructure files and internal packages.
  • Rewrite, simplify, and detatch polling and healthcheck logic spread across relay and consumer sources into cleaner abstractions.
  • Simplify relay to only do relaying and not handle server management.
  • Rewrite the old multi-config based consumer into a new "source pool" controller that acts like a connection pool and hides away all server management and healthcheck complexities.
  • Remove and simplify redundant util methods structs.
  • Simplify and rewrite orchestration logic in multiple places: relay, source pool management, healthchecks.
  • Simplify config structure and config initialization across controllers.
  • Simplify main.go to do initialization and composition only.

knadh avatar Apr 29 '24 11:04 knadh

Can you rebase with develop and raise it to develop?

joeirimpan avatar Apr 29 '24 11:04 joeirimpan