# Build a Microservices Architecture for Microbrews with Spring Boot

**URL:** <https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757>\
**Category:** Developer Blog Comments\
**Created:** [November 21, 2017, 5:21pm UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757 "2017-11-21T17:21:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [November 21, 2017, 5:21pm UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/1 "2017-11-21T17:21:58Z")

</div>

[Build a Microservices Architecture for Microbrews with Spring Boot](https://developer.okta.com/blog/2017/06/15/build-microservices-architecture-spring-boot)

This article shows you how to build a microservices architecture with Spring Boot, Netflix Eureka, Feign, and Hystrix.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 29, 2018, 3:03pm UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/2 "2018-01-29T15:03:15Z")

</div>

**Andrea B.**

Great article!!!

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [July 31, 2018, 11:07am UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/3 "2018-07-31T11:07:38Z")

</div>

**sivakumar gunuru**

good article on the microservices,can you just also make some complex scenarios we may incurr while implement the microservices.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [September 25, 2018, 2:29pm UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/4 "2018-09-25T14:29:33Z")

</div>

**Amir Amir**

awesome 🙂

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [October 2, 2018, 4:13pm UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/5 "2018-10-02T16:13:47Z")

</div>

**Chris Maki**

Great article Matt, there’s a small bug with the Beer class, if you use the Lombok @Data annotation, it will also give you the `NoArgsConstructor`, I had to comment out the `@NoArgsConstructor` annotation for the code to compile.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [October 11, 2018, 10:01pm UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/6 "2018-10-11T22:01:35Z")

</div>

**Matt Raible**

Thanks for the heads up Chris! Something must’ve changed in the last few months since I updated this article. I’ve updated it again, fixing the compilation error you mentioned. I also upgraded to the latest Spring Boot release (2.0.5).

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [October 14, 2018, 4:31pm UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/7 "2018-10-14T16:31:45Z")

</div>

**pmanvi**

Matt → Comprehensive article. With the advent of Docker & their orchestrations (Kubernetes, ECS, Istio …), there is overlap of many services (discovery, load balancer, etc…) with Netflix OSS, whats your take on that.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [October 15, 2018, 2:11pm UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/8 "2018-10-15T14:11:42Z")

</div>

**Matt Raible**

My take is that it depends on how you want to architect your microservices. Do you want to manage services with code (Netflix OSS) or with Istio? I think Netflix has proven that the former works. I think Istio is good too, but I haven’t played with it much. If you’re interested in using Istio with JHipster, see Sendil Kumar’s [Hello Istio ⛵, welcome to JHipster](https://medium.com/@sendilkumarn/hello-istio-%EF%B8%8F-welcome-to-jhipster-b67dc68ecb19 "https://medium.com/@sendilkumarn/hello-istio-%EF%B8%8F-welcome-to-jhipster-b67dc68ecb19").

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [November 16, 2018, 11:22am UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/9 "2018-11-16T11:22:48Z")

</div>

**satish kumar**

Gr8 article…

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [February 19, 2019, 6:16pm UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/10 "2019-02-19T18:16:46Z")

</div>

**Akinrotoye Ayomide**

Nice Article… Thanks.  
I am using Spring 2.1.3.RELEASE. I am having issues using the @EnableFeignClients, @EnableZuul, @FeignClient annotations in the edge-service class. Please help me with a viable solution. Thanks once again.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [February 19, 2019, 6:23pm UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/11 "2019-02-19T18:23:16Z")

</div>

**Matt Raible**

Can you compare your code to the [example code on GitHub](https://github.com/oktadeveloper/spring-boot-microservices-example "https://github.com/oktadeveloper/spring-boot-microservices-example")? My guess is you’re missing some dependencies in your `pom.xml`. Or the dependency names have changed with Spring Boot 2.1.3. This article uses Spring Boot 2.0.5 and Spring Cloud Finchley SR1.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [March 27, 2019, 8:06pm UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/12 "2019-03-27T20:06:33Z")

</div>

**Christopher Tysh**

You are missing `@NoArgsConstructor` where you first setup `class Beer { …`

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [March 27, 2019, 9:00pm UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/13 "2019-03-27T21:00:24Z")

</div>

**Matt Raible**

Hi Christopher!

I don’t believe it’s necessary. I removed it based on a comment from [Chris Maki](http://disq.us/p/1w84m4l "http://disq.us/p/1w84m4l") six months ago:

> Great article Matt, there’s a small bug with the Beer class, if you use the Lombok @Data annotation, it will also give you the `NoArgsConstructor`, I had to comment out the `@NoArgsConstructor` annotation for the code to compile.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [March 28, 2019, 2:52pm UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/14 "2019-03-28T14:52:20Z")

</div>

**Christopher Tysh**

Ok. Maybe I am missing something then. I wasn’t able to get the microbrew service to run, but as soon as I added `@NoArgsConstructor` it ran as expected ¯\_(ツ)\_/¯

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [April 1, 2019, 11:29pm UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/15 "2019-04-01T23:29:30Z")

</div>

**ramya k**

Nice Article .Can I directly consume beer-catalog-service from angular ? ( I mean without using rest web-service ,is there any option to consume eureka registered micro-service from Angular?

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [April 19, 2019, 9:34pm UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/16 "2019-04-19T21:34:53Z")

</div>

**Matt Raible**

You could. It’s just an HTTP request after all. However, with most microservice architectures, you create a gateway that does the routing and security to your downstream microservices. That way you don’t have to specify different ports and URLs for different services in your client.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [April 21, 2019, 4:34pm UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/17 "2019-04-21T16:34:49Z")

</div>

**ramya k**

thank u

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [July 4, 2019, 11:58am UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/18 "2019-07-04T11:58:58Z")

</div>

**Vimal**

Great Article… Thank you

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [April 3, 2020, 1:26pm UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/19 "2020-04-03T13:26:28Z")

</div>

**Muhammad Yassein**

Thank You

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [May 17, 2020, 1:05pm UTC](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757/20 "2020-05-17T13:05:15Z")

</div>

**lombocska**

Did you use @Builder as well @christophertysh ? Since @Builder requires @NoArgsConstructor usage. 🙂

[Next page](https://devforum.okta.com/t/build-a-microservices-architecture-for-microbrews-with-spring-boot/16757.md?page=2)
