Book a Demo

Author Topic: Caching of Response- SPARX OSLC API  (Read 2367 times)

turya

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Caching of Response- SPARX OSLC API
« on: May 22, 2023, 09:48:05 pm »
Can someone please help to understand?
Is there a built in functionality of Caching the Response for some time in SPARX?
Asking because the first call took ~7 seconds and the subsequent calls (Within 10 mins) took less than a second

Sample URI-
<server>/<model>/oslc/am/nestedresources/<key>/?useridentifier=<useridentifier>

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Caching of Response- SPARX OSLC API
« Reply #1 on: May 22, 2023, 10:00:40 pm »
Could also be a matter of a cold start.

I can imagine that, at the first call things like database connections have to be created.
Once up and running they might be much faster in responding, without necesarrily caching stuff.

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Caching of Response- SPARX OSLC API
« Reply #2 on: May 23, 2023, 08:26:48 am »
Some of the databases themselves do caching. I don't think PCS does.