Code Monkey home page Code Monkey logo

oodle-demo-external's Introduction

oodle-demo-external

By Alex Megremis

Notes:

  • This indeed uses a feign client and a consul for registration and discovery.

  • This was my first ever contact with feign. The spec said to ignore it in this case, but I couldn't resist, I found it very interesting. Once I understood the fundamentals, and the basic functionality was there, it became interesting to see how it interacts with Spring. The end result was that I mostly retired the traditional controller I'd written, and left just the feign interface.

    Somehow I actually needed to revert that. The request responses were being misrouted by spring. We're back to using a normal controller.

    I did find an oddity worth discussing. It can be set to decode and pass a 404 response, but that behaviour only seems to work on GETs. The "internal API" DELETE has been written to return a 404 if an invalid ID is passed, and feign still chokes on that.

  • This was also my first time with Consul. Again, the spec said to ignore, but I found it very interesting, so I dug in a bit. I had previously only played with Eureka.

    This is configured to register itself with a Consul container running in my homelab server.

URLs:

oodle-demo-external's People

Contributors

alexmegremis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.