by 0x6438c3b1fa97ba144ea38fcbcee5f0ccf4539b1d (ph33bs)
The Lambdas service from Catalyst was originally designed to support various independent operations required by the reference implementation client. However, as time progressed, newer and more effective endpoints with identical functions were introduced, yet the service retained all previous iterations.
This is the first of a serie of proposals that aim to enhance the resilience and efficiency of Catalyst's Lambdas service by optimizing its endpoints and removing old implementations that didn't take performance into consideration, making inefficient use of resources.
The main objective of this proposal is to decrease the overhead and improve the functionality of the Lambdas service by removing the now obsolete GET /lambdas/health and the redundant GET /lambdas/profile endpoints.
GET /lambdas/health
This health endpoint was designed to handle the responsibility of reporting the status of every catalyst service, which was not an appropriate use case, thereby it will be replaced with the Realm-Description /about endpoint specified on ADR-110: Realm description.
GET /lambdas/profiles
The usage of this endpoint can be replaced by POST /lambdas/profiles which has no limitations regarding the amount of profiles you can request. From now on, the IDs to be included in the request body instead of as query strings. This change aims to address the URL length limitation issue and allow clients to request multiple profiles simultaneously, thereby enhancing the versatility and scalability of the service.
Provided that this proposal gets general acceptance level, the specified endpoints will be removed one month subsequent to its approval.