ChakshuGautam / stencil

Microservices Boilerplate for SamagraX
https://stencil.samagra.io
MIT License
4 stars 5 forks source link

Integrating `user-service` #16

Open techsavvyash opened 9 months ago

techsavvyash commented 9 months ago

Description

At Samagra we have a user-service, which allows for easy and effective user-management. The task is to figure out the best way to expose this service so that we can use this same codebase in stencil without the need of writing wrappers around it.

Potential Solutions

  1. Publish an SDK that has calls to the user-service exposed as functions
  2. Add user-service as a separate microservice and use kong to redirect user related requests to this service directly? (not sure about the feasibility of this @ChakshuGautam please guide)
  3. [My Suggestion] Publish the entire user-service as an npm-package and then do a npm install @SamagraX/user-service everytime it is required somewhere. Feasible??
ChakshuGautam commented 9 months ago

I am good with 3. This is what I was thinking as well.

techsavvyash commented 9 months ago

https://github.com/techsavvyash/user-service has been published as an npm package and enables using user-service code directly into stencil.