title: Where to add my registration logic when using microservice architecture?
body: <p>In my microservice architecture project ,it would have oauth service to authenticate the user and the gateway work as the front end api. </p>
  
  <p>My question is where to write the register logic ? </p>
  
  <p>In the oauth service or in the gateway?</p>
  
  <p><strong>Finally solution:</strong>
  I do that in the user service and call from the gateway. Everything seems to work fine！</p>