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

Add health check endpoint(s) to support a public status page #132

Closed
wants to merge 2 commits into from

Conversation

benefacto
Copy link
Contributor

Closes #125

@benefacto benefacto self-assigned this May 7, 2021
@okjintao
Copy link
Contributor

This PR is worrying me a bit with the massive number of ABI being included. Lambda applications are not meant to have over 50mb zipped data so I will be interested to see the sizing impact this has. Also, there is already a section and naming convention for abi files (and all other files). Please try to keep in line with the set style for the repository.

@benefacto
Copy link
Contributor Author

Hey @axejintao , thanks for the feedback on this. Allow to respond to your concerns individually:

  • Number of ABI being included: The number of the contracts that API-2: [feat. request]: Add health check endpoint(s) to support a public status page #125 is supposed to cover is quite large, so I'm definitely open to ideas on this whether it be pairing it back or breaking this new feature out into another API. Let me know if you have an alternative proposal so that we can keep this application at or under its recommended size.
  • Section and naming convention for abi files: I noticed that you have your ABIs present in the abi folder with a flat structure, an abi file name postfix, and the abis manually declared as TypeScript variables rather than using generated code like TypeChain does. I will rework the ABIs I'm adding to match the existing style and structure. Let me know if you would like me to otherwise do differently.

@okjintao
Copy link
Contributor

i guess for my first point we would want to see how big it gets.
it could be fine and we don't need to worry or, as you suggest we could break it out into its own api i think that is reasonable.

I actually hadn't heard of type chain before but I will look into it. If we have space for it we way want to use it but again worried since we are already at 42mb i think. It is something i'll have to toy with. regardless, i think it doesn't hurt to continue implementation here and if we need to split it out then we can fork the repo and cut out the non health API pieces and dependencies.

.eslintrc.js Show resolved Hide resolved
@benefacto benefacto marked this pull request as ready for review June 15, 2021 23:13
Copy link
Contributor

@okjintao okjintao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall i've taken the time to understand the approach and i think it makes sense.
i think we will want to address some of the things i've brought up in these comments for the scope of this PR.
there will probably be follow up improvements possible here for reducing latency / costs via caching or something but that's out of scope for now.

src/health/health.controller.ts Outdated Show resolved Hide resolved
src/health/health.service.spec.ts Show resolved Hide resolved
src/health/health.service.ts Outdated Show resolved Hide resolved
src/health/health.service.ts Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/health/health.service.ts Outdated Show resolved Hide resolved
src/health/health.service.ts Outdated Show resolved Hide resolved
src/health/health.service.ts Outdated Show resolved Hide resolved
src/health/health.service.ts Outdated Show resolved Hide resolved
src/health/health.service.ts Outdated Show resolved Hide resolved
@okjintao okjintao force-pushed the benefacto/health-check-endpoints branch from b972939 to 04f498f Compare July 6, 2021 16:20
@okjintao okjintao force-pushed the benefacto/health-check-endpoints branch from 04f498f to 520dedb Compare July 6, 2021 16:21
@okjintao
Copy link
Contributor

merged and rebased on a separate pr

@okjintao okjintao closed this Jul 28, 2021
@okjintao okjintao deleted the benefacto/health-check-endpoints branch July 28, 2021 20:55
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.

API-2: [feat. request]: Add health check endpoint(s) to support a public status page
2 participants