Похожие чаты

Thank you. Which of the following ways do you recommend? Netty Rx-Netty Spring Reactor

for netty

I have a TCP server based on netty framework that is embedded (as jar file) within my spring boot project.
In fact I want to do some non-blocking activities (for example CRUD in db or calling restful web services) when the following method of tcp netty is called:
channelRead method of ChannelInboundHandlerAdapter class
Which is the best scenario for this mode?

2 ответов

16 просмотров

For the "CRUD in db or calling restful web services" I would recommend none of the mentioned. Why not just use Spring for that? I would use netty only if there's absolutely no need to parse responses, i.e. if you work only with strings and/or byte buffers or *maybe* one-three objects that you have to write parsers for. At the point where you see that you need to understand what that web service has just sent to you, you face the need to express your data in object form. Spring+rxjava2 or spring+reactor would be my choice for the task you've described (if I understand it right). Netty is way much lower level

P.S.: one more thing - rx-netty is pretty idle, while rxjava2 was very active from beginning and is very mature at the moment. So, I would use it only as a last option. Digging in bugs of an outdated project that integrates two asynchronous tools... just a "hell" synonym))

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта