cancel
Showing results for 
Search instead for 
Did you mean: 

Why v2 is better than v1 in OCC web services?

former_member1573
Participant
0 Kudos

Hello Experts,

As we all know that V1 OCC web services are deprecated and we use V2 OCC web services. V1 OCC web services are stateful, where V2 OCC web services are stateless.

In V1, we save some data in session. But in V2, we have to send attribute's value like customer id etc in request parameter of URL.

How V2 is better than V1?

Instead of sending information every time in URL we can save some attributes in session and use it later.

Why v2 is better than v1?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

former_member620692
Active Contributor
0 Kudos

Some of the advantages of statelessness are:

  1. Simplification of the application design

  2. In line with HTTP design (as HTTP itself is stateless)

  3. High scalability

  4. Better load balancing

  5. Better fault tolerance

  6. More maintainable

There are many resources on the web to explain the differences e.g. https://nordicapis.com/defining-stateful-vs-stateless-web-services/

The Hybris documentation on v1 vs. v2 is https://help.hybris.com/1811/hcd/8c7cc31e866910148d97b208e1028e1a.html

former_member1573
Participant
0 Kudos

Hi Arvind,

I was expecting response from you to this question.

This is the answer I was looking for.

Thank you for your help.

former_member620692
Active Contributor
0 Kudos

You are most welcome.

Answers (0)