buffalo icon indicating copy to clipboard operation
buffalo copied to clipboard

service discovery

Open pablogore-zz opened this issue 8 years ago • 5 comments

HI, Will consider integrating consul /etcd as service discovery ?

pablogore-zz avatar Nov 07 '17 18:11 pablogore-zz

Can you outline what you have in mind for this?

markbates avatar Nov 07 '17 19:11 markbates

Probably something related to http://microservices.io/patterns/server-side-discovery.html but IMO this is far outside of scope.

seblw avatar Dec 14 '17 21:12 seblw

I agree that it's out of scope, but maybe there's something orthogonal to Buffalo that does RPC (and service-discovery) in a Buffalo-friendly way?

Random thought: you could do tracing pretty transparently for the buffalo user:

  • Create a middleware that populates the buffalo context with a trace ID
  • The RPC framework is used in a buffalo handler, and takes the buffalo context

Just an idea, hope it helps

arschles avatar Feb 16 '18 00:02 arschles

Fun fact there is already a request id populated for you in the context. :) it’s put into every log. It looks like xxx-yyy the first half is session scoped, the second half request scope. That way you can trace a users whole session, or a particular request of theirs. Hopefully that helps.

markbates avatar Feb 16 '18 01:02 markbates

Oh nice, that'd be perfect

I'm sure there are more ways an RPC framework could be loosely coupled with buffalo. Hopefully that idea was useful to someone

arschles avatar Feb 16 '18 18:02 arschles

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment. Otherwise, this will be closed in 7 days.

github-actions[bot] avatar Sep 28 '22 02:09 github-actions[bot]

This issue was closed because it has been stalled for 30+7 days with no activity.

github-actions[bot] avatar Oct 06 '22 02:10 github-actions[bot]