Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Make server fault tolerant #132

Open
3 tasks
bnonni opened this issue Sep 4, 2024 · 1 comment
Open
3 tasks

Make server fault tolerant #132

bnonni opened this issue Sep 4, 2024 · 1 comment
Assignees
Labels
bug Something isn't working P0 priority level 0, urgent and important, do now package: issuer Directly impacts the issuer package package: server Directly impacts the server package

Comments

@bnonni
Copy link
Contributor

bnonni commented Sep 4, 2024

Summary

Currently, the server and issuer packages have server-like features that are not fault tolerant. If an error is thrown, it will bubble up to caller and kill the loop. We need to design and implement a simple and effective way to achieve fault tolerance for all server-like looping mechanisms involved in running dcx.

Requirements

  • brainstorm design
  • implement in server
  • implement in issuer
@bnonni bnonni added bug Something isn't working package: issuer Directly impacts the issuer package package: server Directly impacts the server package P0 priority level 0, urgent and important, do now labels Sep 4, 2024
@bnonni bnonni self-assigned this Sep 4, 2024
@bnonni
Copy link
Contributor Author

bnonni commented Sep 6, 2024

My first thought was the quickest and dirtiest way: simply try-catch the listen method. My concern is that I don't know what I don't know there, so I'm afraid I'm missing some glaring edge case that will still result in the loop dying.

Then, I began wondering if what a more elegant and performant solution might look like and thought we could integrate a use a node.js http server like the dwn-server, but I imagine that taking a bit more time, designing and thinking.

Worst case scenario, I can implement an overt amount of try-catchs and we can use a process manager like powerman (pm2) to restart any killed process.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working P0 priority level 0, urgent and important, do now package: issuer Directly impacts the issuer package package: server Directly impacts the server package
Projects
None yet
Development

No branches or pull requests

1 participant