Git Product home page Git Product logo

Comments (4)

sachin-walia avatar sachin-walia commented on June 6, 2024

@billoneil I am wondering if you can provide some information on where and how to use IO Pool. I understand for blocking cases such as DB, Redis, API calls it is suggested to use worker pool or blocking handler. I wonder if there is any use case for using IO pool. How would those handlers and their response body looks like.

from stubbornjava.

billoneil avatar billoneil commented on June 6, 2024

@sachinwalia2k8 I'm not too experienced in the non blocking side myself as most of my systems use databases. A large portion of the built in Undertow handlers are non blocking though.

A good example would be ProxyHandler which proxies HTTP requests to another server. I thought the ResourceHandler was non blocking but it looks like not all of the implementations are non blocking so we must assume they can block.

The Undertow dev list might be a better resource for that question [email protected].

from stubbornjava.

sachin-walia avatar sachin-walia commented on June 6, 2024

Thanks @billoneil BTW your website and your github project really sold me on using Undertow for building our microservice infrastructure. Hopefully over time we'll get rid of our Spring boot based services and just use Undertow. I am using Undertow with Dagger for DI and it is really an awesome combination.

from stubbornjava.

billoneil avatar billoneil commented on June 6, 2024

@sachinwalia2k8 that's great to hear. Once you know many of the common libraries that all of the frameworks already share it's not too difficult to just implement them yourself. There are of course some tradeoffs but I would willingly lock myself into a library that I fully understand instead of using abstracts where I'm not quite sure what is going on. I'm personally not the biggest fan of DI due to some previous bad experiences but Dagger is the one that looks most promising to me.

from stubbornjava.

Related Issues (20)

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.