Project

General

Profile

Actions

task #4009

open

task #6992: Refactor and modernize REST web service API

consider using jackson as json library

Added by Andreas Kohlbecker about 10 years ago. Updated 10 months ago.

Status:
New
Priority:
Priority14
Category:
cdmlib-remote
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
(Total: 0:00 h)
Severity:
critical
Tags:

Description

using jackson instead of json-lib may have an significant impact on the REST service performance:

perfomance of json-lib by comparig two REST service calls:

  1. generic service: ab -n 20 'http://127.0.0.1:8080/description/distributionInfoFor/0eb6ca37-3365-4af5-a800-8fc4b8c366fa.json?statusOrderPreference=1&subAreaPreference=1&hideMarkedAreas=70ceb5bc-3413-4b4e-8ef3-de29d06a42a5&part=mapUriParams&part=tree&part=elements'
  • 31kb / response

  • Max time: 1,991s

  • Min time: 0.766s

  • Average: 0,854s

  1. portal service: ab -n 20 'http://127.0.0.1:8080/portal/description/distributionInfoFor/0eb6ca37-3365-4af5-a800-8fc4b8c366fa.json?statusOrderPreference=1&subAreaPreference=1&hideMarkedAreas=70ceb5bc-3413-4b4e-8ef3-de29d06a42a5&part=mapUriParams&part=tree&part=elements'
  • 500kb /response

  • Max time: 3,689s

  • Min time: 1,133s

  • Average: 1,325s

It looks like the amount of objects to be serialized is consuming an significant amount of time.

further incidence is given by the following benchmark results:

For further evidence see [#4925#note-7]

additional TODO once this is done perform the measurements taken for #4925

for spring configuration see: https://docs.spring.io/spring-boot/docs/current/reference/html/howto.html#howto.spring-mvc.customize-jackson-objectmapper


Related tickets:

  • Duplicate #3440

Subtasks 1 (1 open0 closed)

feature request #4644: json lib incorrectly serializes values containig the characters [, ], {, }NewAndreas Müller

Actions

Related issues

Related to EDIT - bug #3480: tagged text with square bracket confuses jsonNewAndreas Müller

Actions
Related to EDIT - task #9359: Update cdmlib, taxeditor, cdmserver etc. dependenciesClosedAndreas Müller

Actions
Related to EDIT - bug #6179: Use @RestController where appropriateNewAndreas Müller

Actions
Related to EDIT - task #10055: Updates, upgrades and cleanup 2023NewAndreas Müller

Actions
Actions #1

Updated by Andreas Müller almost 9 years ago

  • Target version deleted ()
Actions #2

Updated by Andreas Müller almost 9 years ago

  • Target version set to cdmlib-remote cleanup
Actions #3

Updated by Andreas Kohlbecker almost 9 years ago

  • Target version changed from cdmlib-remote cleanup to cdmlib - Next Major Release
  • Priority changed from Priority08 to Priority14
  • Severity changed from normal to major

increasing severity and priority as this issue has shown to be last big culprit for bad performance in #4925

Actions #4

Updated by Andreas Kohlbecker almost 9 years ago

  • Target version deleted (cdmlib - Next Major Release)
Actions #5

Updated by Andreas Müller almost 9 years ago

  • Target version set to Release 3.8
  • Priority changed from Priority14 to Highest
Actions #6

Updated by Andreas Müller almost 9 years ago

  • Severity changed from major to critical
Actions #7

Updated by Andreas Kohlbecker over 8 years ago

  • Target version changed from Release 3.8 to cdmlib-remote cleanup
Actions #8

Updated by Andreas Kohlbecker over 6 years ago

  • Description updated (diff)
  • Private changed from Yes to No
Actions #9

Updated by Andreas Kohlbecker over 6 years ago

  • Related to bug #3480: tagged text with square bracket confuses json added
Actions #10

Updated by Andreas Kohlbecker over 6 years ago

  • Parent task set to #6992
Actions #11

Updated by Andreas Müller about 3 years ago

  • Related to task #9359: Update cdmlib, taxeditor, cdmserver etc. dependencies added
Actions #12

Updated by Andreas Müller about 2 years ago

  • Assignee changed from Andreas Kohlbecker to Andreas Müller
  • Target version changed from cdmlib-remote cleanup to Release 5.44
Actions #13

Updated by Andreas Müller about 2 years ago

  • Related to bug #6179: Use @RestController where appropriate added
Actions #14

Updated by Andreas Müller over 1 year ago

  • Related to task #10055: Updates, upgrades and cleanup 2023 added
Actions #19

Updated by Andreas Müller 11 months ago

  • Description updated (diff)
Actions #20

Updated by Andreas Müller 11 months ago

  • Description updated (diff)
Actions #21

Updated by Katja Luther 10 months ago

The taxeditor is json-lib free now.

Actions

Also available in: Atom PDF