You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Oleg Kalnichevski <ol...@apache.org> on 2025/12/20 17:22:35 UTC

Event-driven, asynchronous JSON message processor module

Folks

We ended up with a number of modules in core and client with a single
developer and more are in the pipeline.

I have been maintaining an event-driven, asynchronous JSON message
processor for HttpComponents 5.x outside of HttpComponents largely for
two reasons: being a single maintainer and its having a hard dependency
on an external library:

https://github.com/ok2c/httpcomponents-jackson

The module covers a functionality gap between the classic and the async
i/o with regards to efficient processing of JSON messages.

As the reasons for keeping the module outside HttpComponents seem no
longer applicable I would be easier for me to maintain that module
here. The module is small, has a single dependency on Jackson JSON
bindings and is quite stable by now.

If there are any objection please do let me know.

Oleg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: Event-driven, asynchronous JSON message processor module

Posted by Arturo Bernal <ab...@apache.org>.
+1 To bring the module on HttpComponents

Arturo


On Sat, Dec 20, 2025 at 6:22 PM Oleg Kalnichevski <ol...@apache.org> wrote:

> Folks
>
> We ended up with a number of modules in core and client with a single
> developer and more are in the pipeline.
>
> I have been maintaining an event-driven, asynchronous JSON message
> processor for HttpComponents 5.x outside of HttpComponents largely for
> two reasons: being a single maintainer and its having a hard dependency
> on an external library:
>
> https://github.com/ok2c/httpcomponents-jackson
>
> The module covers a functionality gap between the classic and the async
> i/o with regards to efficient processing of JSON messages.
>
> As the reasons for keeping the module outside HttpComponents seem no
> longer applicable I would be easier for me to maintain that module
> here. The module is small, has a single dependency on Jackson JSON
> bindings and is quite stable by now.
>
> If there are any objection please do let me know.
>
> Oleg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>
>

Re: Event-driven, asynchronous JSON message processor module

Posted by Gary Gregory <ga...@gmail.com>.
Let's bring it in!

Gary

On Sat, Dec 20, 2025, 12:22 Oleg Kalnichevski <ol...@apache.org> wrote:

> Folks
>
> We ended up with a number of modules in core and client with a single
> developer and more are in the pipeline.
>
> I have been maintaining an event-driven, asynchronous JSON message
> processor for HttpComponents 5.x outside of HttpComponents largely for
> two reasons: being a single maintainer and its having a hard dependency
> on an external library:
>
> https://github.com/ok2c/httpcomponents-jackson
>
> The module covers a functionality gap between the classic and the async
> i/o with regards to efficient processing of JSON messages.
>
> As the reasons for keeping the module outside HttpComponents seem no
> longer applicable I would be easier for me to maintain that module
> here. The module is small, has a single dependency on Jackson JSON
> bindings and is quite stable by now.
>
> If there are any objection please do let me know.
>
> Oleg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>
>

Re: Event-driven, asynchronous JSON message processor module

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Sun, 2026-02-01 at 18:28 +0100, Oleg Kalnichevski wrote:
> On Sat, 2026-01-31 at 15:47 -0500, Gary Gregory wrote:
> > On Sat, Jan 31, 2026, 15:22 Ryan Schmitt <rs...@apache.org>
> > wrote:
> > 
> > > In that case I would suggest `httpcomponents-jackson2` as the
> > > module name.
> > > 
> > 
> > I agree.
> > 
> > Gary
> > 
> 
> Sounds reasonable. 
> 
> I will rename the module name and the base package name an will
> force-
> push the changes to master.
> 
> Oleg  

Done.

Oleg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: Event-driven, asynchronous JSON message processor module

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Sat, 2026-01-31 at 15:47 -0500, Gary Gregory wrote:
> On Sat, Jan 31, 2026, 15:22 Ryan Schmitt <rs...@apache.org> wrote:
> 
> > In that case I would suggest `httpcomponents-jackson2` as the
> > module name.
> > 
> 
> I agree.
> 
> Gary
> 

Sounds reasonable. 

I will rename the module name and the base package name an will force-
push the changes to master.

Oleg  


> > On Fri, Jan 30, 2026 at 5:44 PM Oleg Kalnichevski
> > <ol...@apache.org>
> > wrote:
> > 
> > > On Fri, 2026-01-30 at 14:26 -0800, Ryan Schmitt wrote:
> > > > It looks like this module's API is coupled to Jackson 2.x,
> > > > since the
> > > > public
> > > > method signatures refer to types like `ObjectMapper`. It's
> > > > worth
> > > > noting
> > > > that Jackson 3 is already out, so in principle we'll eventually
> > > > need
> > > > `httpcomponents-jackson3` (since Jackson 3's class names are
> > > > all
> > > > different:
> > > > `com.fasterxml.jackson` -> `tools.jackson`) which will have to
> > > > build
> > > > with
> > > > Java 17.
> > > > 
> > > > If the goal of this module is to integrate the async client
> > > > (i.e.
> > > > AsyncEntityProducer and the like) with Jackson, one possibility
> > > > is to
> > > > decouple the two via the Reactive Streams API, which the client
> > > > can
> > > > already
> > > > integrate with. Then the problem becomes "expose reactive
> > > > bindings
> > > > for
> > > > Jackson:" the client gives you a `Producer<ByteBuffer>` which
> > > > you
> > > > turn into
> > > > a producer of JSON tokens or DOM types or mapped objects, and
> > > > all the
> > > > RxJava forces of darkness can be brought to bear on the
> > > > problem. From
> > > > a
> > > > quick google search, it looks like someone took a crack at this
> > > > problem
> > > > years ago: https://github.com/kptfh/json-reactive
> > > > 
> > > 
> > > I think I made a full disclaimer at the very beginning the module
> > > had
> > > been tightly coupled to Jackson 2 APIs. I made no attempts at
> > > abstracting it away behind an extra API layer. I intentionally
> > > wanted
> > > the full flexibility of Jackson to be exposed to the end user. I
> > > wanted
> > > a means of representing HTTP data streams as a stream of low
> > > level
> > > native JSON events and not just a straight JSON to Object
> > > mapping.
> > > 
> > > At some point Jackson 2 will get superseded by Jackson 3, Jackson
> > > 5,
> > > Michael Jackson, or some new library entirely. We will have to
> > > deal
> > > with that (if HttpComponents are still relevant at that point)
> > > same way
> > > we had to deal with RxJava2 to RxJava3 bump. We still have a
> > > reminder
> > > of that in our project's pom.xml.
> > > 
> > > Oleg
> > > 
> > > > 
> > > > On Fri, Jan 30, 2026 at 10:22 AM Oleg Kalnichevski
> > > > <ol...@apache.org>
> > > > wrote:
> > > > 
> > > > > I just committed the initial contribution of the JSON binding
> > > > > module
> > > > > for HttpCore.
> > > > > 
> > > > > This is the part of the project has been stable for years.
> > > > > Now, on
> > > > > top
> > > > > of that I would like to add a few improvements based on what
> > > > > I have
> > > > > learned while working on JSON bindings. Primarily I would
> > > > > like to
> > > > > add
> > > > > factory or assembly classes intended to simply wiring of
> > > > > common
> > > > > message
> > > > > processing pipelines for JSON messages but also for generic /
> > > > > simple
> > > > > data types.
> > > > > 
> > > > > Those changes should not spill over into the client module,
> > > > > should
> > > > > be
> > > > > primarily core functionality focused, and should be of little
> > > > > interest
> > > > > to those who are primarily interested in the client side of
> > > > > things.
> > > > > 
> > > > > I will be committing those changes once I feel they are ready
> > > > > for
> > > > > an
> > > > > alpha release.
> > > > > 
> > > > > Feel free to keep an eye on what I am doing, post-commit
> > > > > review my
> > > > > changes, or ignore them entirely. If you find anything
> > > > > objectionable,
> > > > > please do let me know. I will back those changes out and re-
> > > > > submit
> > > > > them
> > > > > in a merge request.
> > > > > 
> > > > > Oleg
> > > > > 
> > > > > 
> > > > > On Sat, 2025-12-20 at 18:22 +0100, Oleg Kalnichevski wrote:
> > > > > > Folks
> > > > > > 
> > > > > > We ended up with a number of modules in core and client
> > > > > > with a
> > > > > > single
> > > > > > developer and more are in the pipeline.
> > > > > > 
> > > > > > I have been maintaining an event-driven, asynchronous JSON
> > > > > > message
> > > > > > processor for HttpComponents 5.x outside of HttpComponents
> > > > > > largely
> > > > > > for
> > > > > > two reasons: being a single maintainer and its having a
> > > > > > hard
> > > > > > dependency
> > > > > > on an external library:
> > > > > > 
> > > > > > https://github.com/ok2c/httpcomponents-jackson
> > > > > > 
> > > > > > The module covers a functionality gap between the classic
> > > > > > and the
> > > > > > async
> > > > > > i/o with regards to efficient processing of JSON messages.
> > > > > > 
> > > > > > As the reasons for keeping the module outside
> > > > > > HttpComponents seem
> > > > > > no
> > > > > > longer applicable I would be easier for me to maintain that
> > > > > > module
> > > > > > here. The module is small, has a single dependency on
> > > > > > Jackson
> > > > > > JSON
> > > > > > bindings and is quite stable by now.
> > > > > > 
> > > > > > If there are any objection please do let me know.
> > > > > > 
> > > > > > Oleg
> > > > > > 
> > > > > > -----------------------------------------------------------
> > > > > > ------
> > > > > > ----
> > > > > > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> > > > > > For additional commands, e-mail: dev-help@hc.apache.org
> > > > > 
> > > > > -------------------------------------------------------------
> > > > > ------
> > > > > --
> > > > > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> > > > > For additional commands, e-mail: dev-help@hc.apache.org
> > > > > 
> > > > > 
> > > 
> > > -----------------------------------------------------------------
> > > ----
> > > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> > > For additional commands, e-mail: dev-help@hc.apache.org
> > > 
> > > 
> > 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: Event-driven, asynchronous JSON message processor module

Posted by Gary Gregory <ga...@gmail.com>.
On Sat, Jan 31, 2026, 15:22 Ryan Schmitt <rs...@apache.org> wrote:

> In that case I would suggest `httpcomponents-jackson2` as the module name.
>

I agree.

Gary


> On Fri, Jan 30, 2026 at 5:44 PM Oleg Kalnichevski <ol...@apache.org>
> wrote:
>
> > On Fri, 2026-01-30 at 14:26 -0800, Ryan Schmitt wrote:
> > > It looks like this module's API is coupled to Jackson 2.x, since the
> > > public
> > > method signatures refer to types like `ObjectMapper`. It's worth
> > > noting
> > > that Jackson 3 is already out, so in principle we'll eventually need
> > > `httpcomponents-jackson3` (since Jackson 3's class names are all
> > > different:
> > > `com.fasterxml.jackson` -> `tools.jackson`) which will have to build
> > > with
> > > Java 17.
> > >
> > > If the goal of this module is to integrate the async client (i.e.
> > > AsyncEntityProducer and the like) with Jackson, one possibility is to
> > > decouple the two via the Reactive Streams API, which the client can
> > > already
> > > integrate with. Then the problem becomes "expose reactive bindings
> > > for
> > > Jackson:" the client gives you a `Producer<ByteBuffer>` which you
> > > turn into
> > > a producer of JSON tokens or DOM types or mapped objects, and all the
> > > RxJava forces of darkness can be brought to bear on the problem. From
> > > a
> > > quick google search, it looks like someone took a crack at this
> > > problem
> > > years ago: https://github.com/kptfh/json-reactive
> > >
> >
> > I think I made a full disclaimer at the very beginning the module had
> > been tightly coupled to Jackson 2 APIs. I made no attempts at
> > abstracting it away behind an extra API layer. I intentionally wanted
> > the full flexibility of Jackson to be exposed to the end user. I wanted
> > a means of representing HTTP data streams as a stream of low level
> > native JSON events and not just a straight JSON to Object mapping.
> >
> > At some point Jackson 2 will get superseded by Jackson 3, Jackson 5,
> > Michael Jackson, or some new library entirely. We will have to deal
> > with that (if HttpComponents are still relevant at that point) same way
> > we had to deal with RxJava2 to RxJava3 bump. We still have a reminder
> > of that in our project's pom.xml.
> >
> > Oleg
> >
> > >
> > > On Fri, Jan 30, 2026 at 10:22 AM Oleg Kalnichevski <ol...@apache.org>
> > > wrote:
> > >
> > > > I just committed the initial contribution of the JSON binding
> > > > module
> > > > for HttpCore.
> > > >
> > > > This is the part of the project has been stable for years. Now, on
> > > > top
> > > > of that I would like to add a few improvements based on what I have
> > > > learned while working on JSON bindings. Primarily I would like to
> > > > add
> > > > factory or assembly classes intended to simply wiring of common
> > > > message
> > > > processing pipelines for JSON messages but also for generic /
> > > > simple
> > > > data types.
> > > >
> > > > Those changes should not spill over into the client module, should
> > > > be
> > > > primarily core functionality focused, and should be of little
> > > > interest
> > > > to those who are primarily interested in the client side of things.
> > > >
> > > > I will be committing those changes once I feel they are ready for
> > > > an
> > > > alpha release.
> > > >
> > > > Feel free to keep an eye on what I am doing, post-commit review my
> > > > changes, or ignore them entirely. If you find anything
> > > > objectionable,
> > > > please do let me know. I will back those changes out and re-submit
> > > > them
> > > > in a merge request.
> > > >
> > > > Oleg
> > > >
> > > >
> > > > On Sat, 2025-12-20 at 18:22 +0100, Oleg Kalnichevski wrote:
> > > > > Folks
> > > > >
> > > > > We ended up with a number of modules in core and client with a
> > > > > single
> > > > > developer and more are in the pipeline.
> > > > >
> > > > > I have been maintaining an event-driven, asynchronous JSON
> > > > > message
> > > > > processor for HttpComponents 5.x outside of HttpComponents
> > > > > largely
> > > > > for
> > > > > two reasons: being a single maintainer and its having a hard
> > > > > dependency
> > > > > on an external library:
> > > > >
> > > > > https://github.com/ok2c/httpcomponents-jackson
> > > > >
> > > > > The module covers a functionality gap between the classic and the
> > > > > async
> > > > > i/o with regards to efficient processing of JSON messages.
> > > > >
> > > > > As the reasons for keeping the module outside HttpComponents seem
> > > > > no
> > > > > longer applicable I would be easier for me to maintain that
> > > > > module
> > > > > here. The module is small, has a single dependency on Jackson
> > > > > JSON
> > > > > bindings and is quite stable by now.
> > > > >
> > > > > If there are any objection please do let me know.
> > > > >
> > > > > Oleg
> > > > >
> > > > > -----------------------------------------------------------------
> > > > > ----
> > > > > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> > > > > For additional commands, e-mail: dev-help@hc.apache.org
> > > >
> > > > -------------------------------------------------------------------
> > > > --
> > > > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> > > > For additional commands, e-mail: dev-help@hc.apache.org
> > > >
> > > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> > For additional commands, e-mail: dev-help@hc.apache.org
> >
> >
>

Re: Event-driven, asynchronous JSON message processor module

Posted by Ryan Schmitt <rs...@apache.org>.
In that case I would suggest `httpcomponents-jackson2` as the module name.

On Fri, Jan 30, 2026 at 5:44 PM Oleg Kalnichevski <ol...@apache.org> wrote:

> On Fri, 2026-01-30 at 14:26 -0800, Ryan Schmitt wrote:
> > It looks like this module's API is coupled to Jackson 2.x, since the
> > public
> > method signatures refer to types like `ObjectMapper`. It's worth
> > noting
> > that Jackson 3 is already out, so in principle we'll eventually need
> > `httpcomponents-jackson3` (since Jackson 3's class names are all
> > different:
> > `com.fasterxml.jackson` -> `tools.jackson`) which will have to build
> > with
> > Java 17.
> >
> > If the goal of this module is to integrate the async client (i.e.
> > AsyncEntityProducer and the like) with Jackson, one possibility is to
> > decouple the two via the Reactive Streams API, which the client can
> > already
> > integrate with. Then the problem becomes "expose reactive bindings
> > for
> > Jackson:" the client gives you a `Producer<ByteBuffer>` which you
> > turn into
> > a producer of JSON tokens or DOM types or mapped objects, and all the
> > RxJava forces of darkness can be brought to bear on the problem. From
> > a
> > quick google search, it looks like someone took a crack at this
> > problem
> > years ago: https://github.com/kptfh/json-reactive
> >
>
> I think I made a full disclaimer at the very beginning the module had
> been tightly coupled to Jackson 2 APIs. I made no attempts at
> abstracting it away behind an extra API layer. I intentionally wanted
> the full flexibility of Jackson to be exposed to the end user. I wanted
> a means of representing HTTP data streams as a stream of low level
> native JSON events and not just a straight JSON to Object mapping.
>
> At some point Jackson 2 will get superseded by Jackson 3, Jackson 5,
> Michael Jackson, or some new library entirely. We will have to deal
> with that (if HttpComponents are still relevant at that point) same way
> we had to deal with RxJava2 to RxJava3 bump. We still have a reminder
> of that in our project's pom.xml.
>
> Oleg
>
> >
> > On Fri, Jan 30, 2026 at 10:22 AM Oleg Kalnichevski <ol...@apache.org>
> > wrote:
> >
> > > I just committed the initial contribution of the JSON binding
> > > module
> > > for HttpCore.
> > >
> > > This is the part of the project has been stable for years. Now, on
> > > top
> > > of that I would like to add a few improvements based on what I have
> > > learned while working on JSON bindings. Primarily I would like to
> > > add
> > > factory or assembly classes intended to simply wiring of common
> > > message
> > > processing pipelines for JSON messages but also for generic /
> > > simple
> > > data types.
> > >
> > > Those changes should not spill over into the client module, should
> > > be
> > > primarily core functionality focused, and should be of little
> > > interest
> > > to those who are primarily interested in the client side of things.
> > >
> > > I will be committing those changes once I feel they are ready for
> > > an
> > > alpha release.
> > >
> > > Feel free to keep an eye on what I am doing, post-commit review my
> > > changes, or ignore them entirely. If you find anything
> > > objectionable,
> > > please do let me know. I will back those changes out and re-submit
> > > them
> > > in a merge request.
> > >
> > > Oleg
> > >
> > >
> > > On Sat, 2025-12-20 at 18:22 +0100, Oleg Kalnichevski wrote:
> > > > Folks
> > > >
> > > > We ended up with a number of modules in core and client with a
> > > > single
> > > > developer and more are in the pipeline.
> > > >
> > > > I have been maintaining an event-driven, asynchronous JSON
> > > > message
> > > > processor for HttpComponents 5.x outside of HttpComponents
> > > > largely
> > > > for
> > > > two reasons: being a single maintainer and its having a hard
> > > > dependency
> > > > on an external library:
> > > >
> > > > https://github.com/ok2c/httpcomponents-jackson
> > > >
> > > > The module covers a functionality gap between the classic and the
> > > > async
> > > > i/o with regards to efficient processing of JSON messages.
> > > >
> > > > As the reasons for keeping the module outside HttpComponents seem
> > > > no
> > > > longer applicable I would be easier for me to maintain that
> > > > module
> > > > here. The module is small, has a single dependency on Jackson
> > > > JSON
> > > > bindings and is quite stable by now.
> > > >
> > > > If there are any objection please do let me know.
> > > >
> > > > Oleg
> > > >
> > > > -----------------------------------------------------------------
> > > > ----
> > > > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> > > > For additional commands, e-mail: dev-help@hc.apache.org
> > >
> > > -------------------------------------------------------------------
> > > --
> > > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> > > For additional commands, e-mail: dev-help@hc.apache.org
> > >
> > >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>
>

Re: Event-driven, asynchronous JSON message processor module

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Fri, 2026-01-30 at 14:26 -0800, Ryan Schmitt wrote:
> It looks like this module's API is coupled to Jackson 2.x, since the
> public
> method signatures refer to types like `ObjectMapper`. It's worth
> noting
> that Jackson 3 is already out, so in principle we'll eventually need
> `httpcomponents-jackson3` (since Jackson 3's class names are all
> different:
> `com.fasterxml.jackson` -> `tools.jackson`) which will have to build
> with
> Java 17.
> 
> If the goal of this module is to integrate the async client (i.e.
> AsyncEntityProducer and the like) with Jackson, one possibility is to
> decouple the two via the Reactive Streams API, which the client can
> already
> integrate with. Then the problem becomes "expose reactive bindings
> for
> Jackson:" the client gives you a `Producer<ByteBuffer>` which you
> turn into
> a producer of JSON tokens or DOM types or mapped objects, and all the
> RxJava forces of darkness can be brought to bear on the problem. From
> a
> quick google search, it looks like someone took a crack at this
> problem
> years ago: https://github.com/kptfh/json-reactive
> 

I think I made a full disclaimer at the very beginning the module had
been tightly coupled to Jackson 2 APIs. I made no attempts at
abstracting it away behind an extra API layer. I intentionally wanted
the full flexibility of Jackson to be exposed to the end user. I wanted
a means of representing HTTP data streams as a stream of low level
native JSON events and not just a straight JSON to Object mapping.

At some point Jackson 2 will get superseded by Jackson 3, Jackson 5,
Michael Jackson, or some new library entirely. We will have to deal
with that (if HttpComponents are still relevant at that point) same way
we had to deal with RxJava2 to RxJava3 bump. We still have a reminder
of that in our project's pom.xml.

Oleg

> 
> On Fri, Jan 30, 2026 at 10:22 AM Oleg Kalnichevski <ol...@apache.org>
> wrote:
> 
> > I just committed the initial contribution of the JSON binding
> > module
> > for HttpCore.
> > 
> > This is the part of the project has been stable for years. Now, on
> > top
> > of that I would like to add a few improvements based on what I have
> > learned while working on JSON bindings. Primarily I would like to
> > add
> > factory or assembly classes intended to simply wiring of common
> > message
> > processing pipelines for JSON messages but also for generic /
> > simple
> > data types.
> > 
> > Those changes should not spill over into the client module, should
> > be
> > primarily core functionality focused, and should be of little
> > interest
> > to those who are primarily interested in the client side of things.
> > 
> > I will be committing those changes once I feel they are ready for
> > an
> > alpha release.
> > 
> > Feel free to keep an eye on what I am doing, post-commit review my
> > changes, or ignore them entirely. If you find anything
> > objectionable,
> > please do let me know. I will back those changes out and re-submit
> > them
> > in a merge request.
> > 
> > Oleg
> > 
> > 
> > On Sat, 2025-12-20 at 18:22 +0100, Oleg Kalnichevski wrote:
> > > Folks
> > > 
> > > We ended up with a number of modules in core and client with a
> > > single
> > > developer and more are in the pipeline.
> > > 
> > > I have been maintaining an event-driven, asynchronous JSON
> > > message
> > > processor for HttpComponents 5.x outside of HttpComponents
> > > largely
> > > for
> > > two reasons: being a single maintainer and its having a hard
> > > dependency
> > > on an external library:
> > > 
> > > https://github.com/ok2c/httpcomponents-jackson
> > > 
> > > The module covers a functionality gap between the classic and the
> > > async
> > > i/o with regards to efficient processing of JSON messages.
> > > 
> > > As the reasons for keeping the module outside HttpComponents seem
> > > no
> > > longer applicable I would be easier for me to maintain that
> > > module
> > > here. The module is small, has a single dependency on Jackson
> > > JSON
> > > bindings and is quite stable by now.
> > > 
> > > If there are any objection please do let me know.
> > > 
> > > Oleg
> > > 
> > > -----------------------------------------------------------------
> > > ----
> > > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> > > For additional commands, e-mail: dev-help@hc.apache.org
> > 
> > -------------------------------------------------------------------
> > --
> > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> > For additional commands, e-mail: dev-help@hc.apache.org
> > 
> > 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: Event-driven, asynchronous JSON message processor module

Posted by Ryan Schmitt <rs...@apache.org>.
It looks like this module's API is coupled to Jackson 2.x, since the public
method signatures refer to types like `ObjectMapper`. It's worth noting
that Jackson 3 is already out, so in principle we'll eventually need
`httpcomponents-jackson3` (since Jackson 3's class names are all different:
`com.fasterxml.jackson` -> `tools.jackson`) which will have to build with
Java 17.

If the goal of this module is to integrate the async client (i.e.
AsyncEntityProducer and the like) with Jackson, one possibility is to
decouple the two via the Reactive Streams API, which the client can already
integrate with. Then the problem becomes "expose reactive bindings for
Jackson:" the client gives you a `Producer<ByteBuffer>` which you turn into
a producer of JSON tokens or DOM types or mapped objects, and all the
RxJava forces of darkness can be brought to bear on the problem. From a
quick google search, it looks like someone took a crack at this problem
years ago: https://github.com/kptfh/json-reactive


On Fri, Jan 30, 2026 at 10:22 AM Oleg Kalnichevski <ol...@apache.org> wrote:

> I just committed the initial contribution of the JSON binding module
> for HttpCore.
>
> This is the part of the project has been stable for years. Now, on top
> of that I would like to add a few improvements based on what I have
> learned while working on JSON bindings. Primarily I would like to add
> factory or assembly classes intended to simply wiring of common message
> processing pipelines for JSON messages but also for generic / simple
> data types.
>
> Those changes should not spill over into the client module, should be
> primarily core functionality focused, and should be of little interest
> to those who are primarily interested in the client side of things.
>
> I will be committing those changes once I feel they are ready for an
> alpha release.
>
> Feel free to keep an eye on what I am doing, post-commit review my
> changes, or ignore them entirely. If you find anything objectionable,
> please do let me know. I will back those changes out and re-submit them
> in a merge request.
>
> Oleg
>
>
> On Sat, 2025-12-20 at 18:22 +0100, Oleg Kalnichevski wrote:
> > Folks
> >
> > We ended up with a number of modules in core and client with a single
> > developer and more are in the pipeline.
> >
> > I have been maintaining an event-driven, asynchronous JSON message
> > processor for HttpComponents 5.x outside of HttpComponents largely
> > for
> > two reasons: being a single maintainer and its having a hard
> > dependency
> > on an external library:
> >
> > https://github.com/ok2c/httpcomponents-jackson
> >
> > The module covers a functionality gap between the classic and the
> > async
> > i/o with regards to efficient processing of JSON messages.
> >
> > As the reasons for keeping the module outside HttpComponents seem no
> > longer applicable I would be easier for me to maintain that module
> > here. The module is small, has a single dependency on Jackson JSON
> > bindings and is quite stable by now.
> >
> > If there are any objection please do let me know.
> >
> > Oleg
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> > For additional commands, e-mail: dev-help@hc.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>
>

Re: Event-driven, asynchronous JSON message processor module

Posted by Oleg Kalnichevski <ol...@apache.org>.
I just committed the initial contribution of the JSON binding module
for HttpCore.

This is the part of the project has been stable for years. Now, on top
of that I would like to add a few improvements based on what I have
learned while working on JSON bindings. Primarily I would like to add
factory or assembly classes intended to simply wiring of common message
processing pipelines for JSON messages but also for generic / simple
data types. 

Those changes should not spill over into the client module, should be
primarily core functionality focused, and should be of little interest
to those who are primarily interested in the client side of things.

I will be committing those changes once I feel they are ready for an
alpha release. 

Feel free to keep an eye on what I am doing, post-commit review my
changes, or ignore them entirely. If you find anything objectionable,
please do let me know. I will back those changes out and re-submit them
in a merge request.

Oleg


On Sat, 2025-12-20 at 18:22 +0100, Oleg Kalnichevski wrote:
> Folks
> 
> We ended up with a number of modules in core and client with a single
> developer and more are in the pipeline.
> 
> I have been maintaining an event-driven, asynchronous JSON message
> processor for HttpComponents 5.x outside of HttpComponents largely
> for
> two reasons: being a single maintainer and its having a hard
> dependency
> on an external library:
> 
> https://github.com/ok2c/httpcomponents-jackson
> 
> The module covers a functionality gap between the classic and the
> async
> i/o with regards to efficient processing of JSON messages.
> 
> As the reasons for keeping the module outside HttpComponents seem no
> longer applicable I would be easier for me to maintain that module
> here. The module is small, has a single dependency on Jackson JSON
> bindings and is quite stable by now.
> 
> If there are any objection please do let me know.
> 
> Oleg
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: Of Blonds vs Brunettes; Re: Event-driven, asynchronous JSON message processor module

Posted by Ryan Schmitt <rs...@apache.org>.
On Sun, Dec 28, 2025 at 7:34 AM Gary Gregory <ga...@gmail.com> wrote:

> So you want to have two 2 build systems? We use Maven, there's no reason to
> add another.


This is not as uncommon as you might think; CI/release builds have
considerably different requirements from local development, and I do run
into projects sometimes that have both an Ant and Maven build, or a Maven
build and a native Clojure build. There are also polyglot repos that define
multiple builds (e.g. NPM and Cargo), but that's not quite the same thing.

Technically, if you develop in Eclipse or IntelliJ, you already have a
second build system, as those IDEs work by importing the Maven project into
their internal representation and then doing things like compilation and
test execution "in house." This often has issues; it's been a while since
I've been able to get log4j2 to actually build in IntelliJ, for example,
since there's all this crazy annotation processor configuration that the
IDE doesn't model correctly. (Gradle integration OTOH tends to work by
delegating everything to Gradle, which in my experience is significantly
more reliable.)

The advantage of adding Gradle, as opposed to migrating to Gradle, is we
can treat it as an experiment that can simply be dropped later if it's
unsuccessful. We also have the option of migrating, but that requires a lot
more scrutiny; we need to be certain that the Gradle-generated artifacts
and metadata we are publishing don't introduce any breaking changes. Log4j
had an issue like this recently where Spotbugs annotations, compiled for
Java 17, were transitively introduced to consumers through Gradle module
metadata.

Re: Of Blonds vs Brunettes; Re: Event-driven, asynchronous JSON message processor module

Posted by Gary Gregory <ga...@gmail.com>.
On Sun, Dec 28, 2025, 07:29 Ryan Schmitt <rs...@apache.org> wrote:

> On Sun, Dec 28, 2025 at 5:23 AM Oleg Kalnichevski <ol...@apache.org>
> wrote:
>
> >
> > Having Gradle as a secondary build tool could work, but it would mean
> > extra work for me as a release manager as version information in Gradle
> > files would need to be updated and tested at release time. And I _hate_
> > the ASF release process as is without having a secondary build system to
> > worry about.
>
>
> Tell me more. By "version information," do you mean all the dependency
> management info? Or the httpcomponents versions themselves, and the logic
> to generate `version.properties`?
>
> The way I'm thinking about this is that the Gradle build should have no
> involvement in the release process at all, it would just be for local
> development and testing.



So you want to have two 2 build systems? We use Maven, there's no reason to
add another.

Gary

For example, we could define additional test
> targets that run the tests across multiple Java versions, with different
> combinations of dependencies (to detect incorrectly modeled "optional"
> dependencies), or with newer versions of `core` (to detect breaking
> behavioral changes).
>
> It might be worth having a thread about what improvements we'd like to see
> in the build system. Whether we add Gradle support, upgrade to Maven 4, or
> both, we're going to be getting new, useful capabilities.
>

Re: Of Blonds vs Brunettes; Re: Event-driven, asynchronous JSON message processor module

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Sat, 2026-01-17 at 12:42 -0800, Ryan Schmitt wrote:
> What's the best way to build core and client in a single Maven
> reactor? I
> set up a pom.xml that lists them both as modules, so the directory
> structure is:
> 
> - hc <-- :aggregator
> - hc/core <-- :httpcore5-parent
> - hc/client <-- :httpclient5-parent
> 
> This mostly works, but it has two problems. The first is that when I
> just
> build core or client, Maven emits a warning saying that my project is
> malformed, because it's expecting `hc/` to contain `httpcomponents-
> parent`,
> rather than my aggregator POM. The second issue is that I need to
> pass
> `-Dhttpcore.version=5.5-alpha1-SNAPSHOT` in order to link the
> httpclient5
> projects to the reactor build of httpcore5.
> 
> For now, I'm ignoring the warnings, and I have a `.mvn/maven.config`
> file
> with the following contents:
> 
> --threads=2C
> -Drat.skip
> -Dcheckstyle.skip
> -Dhttpcore.version=5.5-alpha1-SNAPSHOT
> 
> Like I said, this works pretty well (it builds and tests all of
> httpcomponents in 45 seconds), but it feels hacky. It's also not
> directly
> reusable by other contributors. Is there a better way of doing this?
> 

Honestly I cannot say much here. Whenever I encountered a situation
when I needed to run a snapshot of client with a snapshot of core, I
just imported them both into IntelliJ and ran my tests there.

Oleg 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: Of Blonds vs Brunettes; Re: Event-driven, asynchronous JSON message processor module

Posted by Ryan Schmitt <rs...@apache.org>.
What's the best way to build core and client in a single Maven reactor? I
set up a pom.xml that lists them both as modules, so the directory
structure is:

- hc <-- :aggregator
- hc/core <-- :httpcore5-parent
- hc/client <-- :httpclient5-parent

This mostly works, but it has two problems. The first is that when I just
build core or client, Maven emits a warning saying that my project is
malformed, because it's expecting `hc/` to contain `httpcomponents-parent`,
rather than my aggregator POM. The second issue is that I need to pass
`-Dhttpcore.version=5.5-alpha1-SNAPSHOT` in order to link the httpclient5
projects to the reactor build of httpcore5.

For now, I'm ignoring the warnings, and I have a `.mvn/maven.config` file
with the following contents:

--threads=2C
-Drat.skip
-Dcheckstyle.skip
-Dhttpcore.version=5.5-alpha1-SNAPSHOT

Like I said, this works pretty well (it builds and tests all of
httpcomponents in 45 seconds), but it feels hacky. It's also not directly
reusable by other contributors. Is there a better way of doing this?

On Sun, Dec 28, 2025 at 5:48 AM Ryan Schmitt <rs...@apache.org> wrote:

> On Sun, Dec 28, 2025 at 8:23 AM Oleg Kalnichevski <ol...@apache.org>
> wrote:
>
>> When creating a release tag in Git I need to make sure it matches the
>> version information in POM metadata. With Maven that basically means
>> updating project and modules pom.xml.
>>
>>
>> https://github.com/ok2c/httpcomponents-release-tools/blob/master/release-lib/src/main/kotlin/com/github/ok2c/hc/release/HCReleasePlugin.kt#L217
>>
>> I would need to do something similar for Gradle which should not be hard
>> given it involves updating a single file. Still, it is an extra chore,
>> an extra moving part that can break or fail.
>>
>> Oleg
>
>
> Yeah, I think we can write a Gradle build that obtains all that
> information from the pom.xml in order to avoid duplication. I used `gradle
> init` and Codex to throw together a quick prototype:
>
> https://github.com/rschmitt/httpcomponents-core/tree/gradle
>
> With a warm daemon and configuration cache, it runs the entire test suite
> on my machine in just 17 seconds! (`./gradlew test`) This is nearly 50%
> faster than `./mvnw verify`.
>

Re: Of Blonds vs Brunettes; Re: Event-driven, asynchronous JSON message processor module

Posted by Ryan Schmitt <rs...@apache.org>.
On Sun, Dec 28, 2025 at 8:23 AM Oleg Kalnichevski <ol...@apache.org> wrote:

> When creating a release tag in Git I need to make sure it matches the
> version information in POM metadata. With Maven that basically means
> updating project and modules pom.xml.
>
>
> https://github.com/ok2c/httpcomponents-release-tools/blob/master/release-lib/src/main/kotlin/com/github/ok2c/hc/release/HCReleasePlugin.kt#L217
>
> I would need to do something similar for Gradle which should not be hard
> given it involves updating a single file. Still, it is an extra chore,
> an extra moving part that can break or fail.
>
> Oleg


Yeah, I think we can write a Gradle build that obtains all that
information from the pom.xml in order to avoid duplication. I used `gradle
init` and Codex to throw together a quick prototype:

https://github.com/rschmitt/httpcomponents-core/tree/gradle

With a warm daemon and configuration cache, it runs the entire test suite
on my machine in just 17 seconds! (`./gradlew test`) This is nearly 50%
faster than `./mvnw verify`.

Re: Of Blonds vs Brunettes; Re: Event-driven, asynchronous JSON message processor module

Posted by Oleg Kalnichevski <ol...@apache.org>.
On 12/28/2025 13:29, Ryan Schmitt wrote:
> On Sun, Dec 28, 2025 at 5:23 AM Oleg Kalnichevski <ol...@apache.org> wrote:
> 
>>
>> Having Gradle as a secondary build tool could work, but it would mean
>> extra work for me as a release manager as version information in Gradle
>> files would need to be updated and tested at release time. And I _hate_
>> the ASF release process as is without having a secondary build system to
>> worry about.
> 
> 
> Tell me more. By "version information," do you mean all the dependency
> management info? Or the httpcomponents versions themselves, and the logic
> to generate `version.properties`?

When creating a release tag in Git I need to make sure it matches the 
version information in POM metadata. With Maven that basically means 
updating project and modules pom.xml.

https://github.com/ok2c/httpcomponents-release-tools/blob/master/release-lib/src/main/kotlin/com/github/ok2c/hc/release/HCReleasePlugin.kt#L217

I would need to do something similar for Gradle which should not be hard 
given it involves updating a single file. Still, it is an extra chore, 
an extra moving part that can break or fail.

Oleg

> 
> The way I'm thinking about this is that the Gradle build should have no
> involvement in the release process at all, it would just be for local
> development and testing. For example, we could define additional test
> targets that run the tests across multiple Java versions, with different
> combinations of dependencies (to detect incorrectly modeled "optional"
> dependencies), or with newer versions of `core` (to detect breaking
> behavioral changes).
> 
> It might be worth having a thread about what improvements we'd like to see
> in the build system. Whether we add Gradle support, upgrade to Maven 4, or
> both, we're going to be getting new, useful capabilities.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: Of Blonds vs Brunettes; Re: Event-driven, asynchronous JSON message processor module

Posted by Ryan Schmitt <rs...@apache.org>.
On Sun, Dec 28, 2025 at 5:23 AM Oleg Kalnichevski <ol...@apache.org> wrote:

>
> Having Gradle as a secondary build tool could work, but it would mean
> extra work for me as a release manager as version information in Gradle
> files would need to be updated and tested at release time. And I _hate_
> the ASF release process as is without having a secondary build system to
> worry about.


Tell me more. By "version information," do you mean all the dependency
management info? Or the httpcomponents versions themselves, and the logic
to generate `version.properties`?

The way I'm thinking about this is that the Gradle build should have no
involvement in the release process at all, it would just be for local
development and testing. For example, we could define additional test
targets that run the tests across multiple Java versions, with different
combinations of dependencies (to detect incorrectly modeled "optional"
dependencies), or with newer versions of `core` (to detect breaking
behavioral changes).

It might be worth having a thread about what improvements we'd like to see
in the build system. Whether we add Gradle support, upgrade to Maven 4, or
both, we're going to be getting new, useful capabilities.

Of Blonds vs Brunettes; Re: Event-driven, asynchronous JSON message processor module

Posted by Oleg Kalnichevski <ol...@apache.org>.

On 12/27/2025 22:03, Gary Gregory wrote:
> Google Gson is also available and works great. I sure hope we stay away
> from Gradle like the plague.
> 
> Gary
> 
> On Sat, Dec 27, 2025, 15:55 Ryan Schmitt <rs...@apache.org> wrote:
> 
>> I don't see the issue with having a hard dependency in an optional module.
>> The reactive bindings have a hard dependency on the Reactive Streams API,
>> for example. It's a bigger commitment to have an *API* dependency than an
>> implementation dependency, since that implies that it would be a breaking
>> change to migrate to some other JSON library, but in practice Jackson is
>> currently the only sensible choice in the Java ecosystem.
>>
>> I can't help but notice that httpcomponents-jackson builds with Gradle. I
>> assume you'll put in a Maven build, but I think keeping the Gradle build
>> would be a good idea. I've been working on improving httpcomponents build
>> times and I'm starting to get frustrated with Maven's limitations; I'd like
>> the option of using Gradle for local development. It's *much* faster, it
>> has strong IDE integration, it produces useful HTML test reports, etc.
>> There's also an especially powerful feature called composite builds that
>> makes it really easy to build separate projects together, and in my
>> experience this ends up being the killer feature that wins over a lot of
>> Gradle skeptics.
>>
>> We'd continue using Maven for CI and release builds, of course, but I think
>> a Gradle build would be worth maintaining just for local development.
>>

Hi Ryan

I like and use both Maven and Gradle. I tend to use Gradle for my 
private projects mostly because I get enough Maven exposure at my 
commercial projects. I use Gradle as a tool for our release management 
and it has been a lifesaver for me.

But we also have project members who do not want Gradle and I simply do 
not think Gradle is worth having a major strife between project members 
over it.

Having Gradle as a secondary build tool could work, but it would mean 
extra work for me as a release manager as version information in Gradle 
files would need to be updated and tested at release time. And I _hate_ 
the ASF release process as is without having a secondary build system to 
worry about.

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: Event-driven, asynchronous JSON message processor module

Posted by Gary Gregory <ga...@gmail.com>.
Google Gson is also available and works great. I sure hope we stay away
from Gradle like the plague.

Gary

On Sat, Dec 27, 2025, 15:55 Ryan Schmitt <rs...@apache.org> wrote:

> I don't see the issue with having a hard dependency in an optional module.
> The reactive bindings have a hard dependency on the Reactive Streams API,
> for example. It's a bigger commitment to have an *API* dependency than an
> implementation dependency, since that implies that it would be a breaking
> change to migrate to some other JSON library, but in practice Jackson is
> currently the only sensible choice in the Java ecosystem.
>
> I can't help but notice that httpcomponents-jackson builds with Gradle. I
> assume you'll put in a Maven build, but I think keeping the Gradle build
> would be a good idea. I've been working on improving httpcomponents build
> times and I'm starting to get frustrated with Maven's limitations; I'd like
> the option of using Gradle for local development. It's *much* faster, it
> has strong IDE integration, it produces useful HTML test reports, etc.
> There's also an especially powerful feature called composite builds that
> makes it really easy to build separate projects together, and in my
> experience this ends up being the killer feature that wins over a lot of
> Gradle skeptics.
>
> We'd continue using Maven for CI and release builds, of course, but I think
> a Gradle build would be worth maintaining just for local development.
>
> On Sat, Dec 20, 2025 at 12:23 PM Oleg Kalnichevski <ol...@apache.org>
> wrote:
>
> > Folks
> >
> > We ended up with a number of modules in core and client with a single
> > developer and more are in the pipeline.
> >
> > I have been maintaining an event-driven, asynchronous JSON message
> > processor for HttpComponents 5.x outside of HttpComponents largely for
> > two reasons: being a single maintainer and its having a hard dependency
> > on an external library:
> >
> > https://github.com/ok2c/httpcomponents-jackson
> >
> > The module covers a functionality gap between the classic and the async
> > i/o with regards to efficient processing of JSON messages.
> >
> > As the reasons for keeping the module outside HttpComponents seem no
> > longer applicable I would be easier for me to maintain that module
> > here. The module is small, has a single dependency on Jackson JSON
> > bindings and is quite stable by now.
> >
> > If there are any objection please do let me know.
> >
> > Oleg
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> > For additional commands, e-mail: dev-help@hc.apache.org
> >
> >
>

Re: Event-driven, asynchronous JSON message processor module

Posted by Ryan Schmitt <rs...@apache.org>.
I don't see the issue with having a hard dependency in an optional module.
The reactive bindings have a hard dependency on the Reactive Streams API,
for example. It's a bigger commitment to have an *API* dependency than an
implementation dependency, since that implies that it would be a breaking
change to migrate to some other JSON library, but in practice Jackson is
currently the only sensible choice in the Java ecosystem.

I can't help but notice that httpcomponents-jackson builds with Gradle. I
assume you'll put in a Maven build, but I think keeping the Gradle build
would be a good idea. I've been working on improving httpcomponents build
times and I'm starting to get frustrated with Maven's limitations; I'd like
the option of using Gradle for local development. It's *much* faster, it
has strong IDE integration, it produces useful HTML test reports, etc.
There's also an especially powerful feature called composite builds that
makes it really easy to build separate projects together, and in my
experience this ends up being the killer feature that wins over a lot of
Gradle skeptics.

We'd continue using Maven for CI and release builds, of course, but I think
a Gradle build would be worth maintaining just for local development.

On Sat, Dec 20, 2025 at 12:23 PM Oleg Kalnichevski <ol...@apache.org> wrote:

> Folks
>
> We ended up with a number of modules in core and client with a single
> developer and more are in the pipeline.
>
> I have been maintaining an event-driven, asynchronous JSON message
> processor for HttpComponents 5.x outside of HttpComponents largely for
> two reasons: being a single maintainer and its having a hard dependency
> on an external library:
>
> https://github.com/ok2c/httpcomponents-jackson
>
> The module covers a functionality gap between the classic and the async
> i/o with regards to efficient processing of JSON messages.
>
> As the reasons for keeping the module outside HttpComponents seem no
> longer applicable I would be easier for me to maintain that module
> here. The module is small, has a single dependency on Jackson JSON
> bindings and is quite stable by now.
>
> If there are any objection please do let me know.
>
> Oleg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>
>