Skip to content

Leverage Jackson non-blocking JSON parsing (and remove netty-buffer dependency) [SPR-14528] #19097

Closed

Description

@spring-projects-issues

Rossen Stoyanchev opened SPR-14528 and commented


Affects: 5.0 M1

Issue Links:

Activity

  1. spring-projects-issues commented on Aug 10, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Sébastien Deleuze commented

    Arjen Poutsma Rossen Stoyanchev I have created an updated JsonObjectDecoder based on our DataBuffer instead of using Netty ByteBuf, see this branch for the code. This is the first working version, and the implementation still needs some polish and managing properly buffer release/retain, but I think this is a good basis for discussing various points.

    Please notice that I fixed a bug in NettyDataBuffer#lastIndexOf() to make it works.

    This JsonObjectDecoder implementation aggregates the multiple buffers thanks to DataBuffer#write(DataBuffer), creates a slice in order to identify the JSON objects start and end index without changing the original buffer read position, and then return each JSON object as a slice that will be processed by Jackson2JsonDecoder.

    I think I need Arjen Poutsma feedback to understand how to manage release/retain in that use cases, where we use slices and where 2 decoders are processing the data together.

  2. spring-projects-issues commented on Mar 30, 2017

    @spring-projects-issues
    CollaboratorAuthor

    Sébastien Deleuze commented

    Jackson 2.9 (initial release or a patch release coming shortly after) should provide asynchronous Jackson JSON parsing capabilities that will allow to avoid requiring io.netty.buffer dependency.

  3. spring-projects-issues commented on Jun 5, 2017

    @spring-projects-issues
    CollaboratorAuthor

    Sébastien Deleuze commented

    This feature should be available in the upcoming Jackson 2.9.0.pr4.

  4. spring-projects-issues commented on Jun 17, 2017

    @spring-projects-issues
    CollaboratorAuthor

    Sébastien Deleuze commented

    We now use Jackson 2.9.0.pr4 which contains this non-blocking JSON feature.

    Arjen Poutsma Since you mention during last meeting that you want to have a look to this feature + you have the experience of implementing Aalto XML support, I assign you this issue. Feel free to assign back to me after your initial look if you don't have the time to handle it for RC3.

  5. spring-projects-issues commented on Jun 28, 2017

    @spring-projects-issues
    CollaboratorAuthor

    Arjen Poutsma commented

    Completed in 31e0e53

  6. spring-projects-issues commented on Jun 29, 2017

    @spring-projects-issues
    CollaboratorAuthor

    Stéphane Nicoll commented

    That commit added an import on org.eclipse.jetty.io.RuntimeIOException

  7. spring-projects-issues commented on Jun 29, 2017

    @spring-projects-issues
    CollaboratorAuthor

    Stéphane Nicoll commented

    Polished in b1f06fd

  8. added
    in: web
    type: task
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: webtype: task

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions