Comments (4)
@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.
@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.
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.
@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)
- Slf4jAccessLogReceiver HOT 2
- java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectMapper.getSerializerProviderInstance() HOT 1
- Undertow support for form-based authentications ? HOT 1
- How to access Maven / Gradle versions from Java
- K8s all the things
- Set up CD with k8s HOT 1
- Upgrade Gradle / Java
- Fix Dockerfile
- Abstractions are bad and you should feel bad
- Opentelemetry
- Adding CloudFront CDN
- Add more redirect examples
- Postgres JDBC driver w/ SSL setup
- Add OkHttp Dropwizard metrics
- Separation of concerns with modules and visibility
- Managing timeouts
- Managing Resource Pools
- Circuit Breaking Misbehaving Services/Endpoints
- Achieving many of the microservice benefits in a monolith
- Rss feed? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stubbornjava.