These are chat archives for spring-cloud/spring-cloud

12th
May 2017
Al Grant
@bigalnz
May 12 2017 07:00
@edeandrea ok, firing up beanstalk now.
turn off all the other stuff and just install mysql after that I guess
Bryan Perino
@bryantp
May 12 2017 19:54
Hi All. What is the best way to develop a microservice without having to have the other dependent services running?
I am using Spring Cloud Netflix specifically.
Daniel Lavoie
@daniellavoie
May 12 2017 20:01
@bryantp avoid dependencies on startup and adopt a RESTfull approach and everything should be smooth.
Bryan Perino
@bryantp
May 12 2017 20:04
@daniellavoie There are no hard wired dependencies. I was just wondering how to fake a call when using Feign and Zuul?
I would also have to mock out the authentication since each MS endpoint is secured.
Daniel Lavoie
@daniellavoie
May 12 2017 20:12
@bryantp On a personal experience that worked for me, I ended up building a mocked implementation of my feign clients backed by json data. This json data is regenerated by the dependencies build process.
Bryan Perino
@bryantp
May 12 2017 20:17
@daniellavoie I think I see where this is going. I can just set a profile up that injects my own feign client that returns mocked data.
I can probably just store that mocked data in my git repo, and have it regenerated during the build process like yours
Dave Syer
@dsyer
May 12 2017 20:59
Have you looked at spring cloud contract?
Sounds like what you need is stubs for the producer
Daniel Lavoie
@daniellavoie
May 12 2017 21:55
IMHO Spring Cloud Contract is definitely the way to go if you want to go large scale. A homemade stub is a quicky.
Bryan Perino
@bryantp
May 12 2017 22:12
Can I configure it to work with OAuth?
or rather, to mock my OAuth server?