casper-network / casper-sidecar

Apache License 2.0
2 stars 8 forks source link

[SIDECAR] REST server needs to be moved out of sse sidecar #240

Closed zajko closed 4 months ago

zajko commented 5 months ago

Currently the 2.0 code starts an SSE events server and a RPC server. The SSE events server contains other servers like the REST API server and ADMIN server. But sidecar as a whole can potentially work without sse connectivity. In that case we still want to be able to set up a REST API (for instance to serve entities that were already stored in DB) and we want to have an admin server (to expose the metrics and;/or status endpoint). Ultimately we want the metrics of rpc server to be available under the admin /metrics endpoint, but that is out of scope of this ticket.

AC: