The Basics of Async in Spring

preview_player
Показать описание
Learn the foundations of using asynchronous processing and the @Async annotation in Spring.

====
The instructor in this lesson is Thomas Hehl
Рекомендации по теме
Комментарии
Автор

Very good explanation with an example, but i was wondering one thing here, this aysnc can be achieve the functionalities of JMS? i mean like retrying the request?

jagadishkurli
Автор

Hi,
I have a scenario here with a behavior of a synchronized method, which I could not understand.

Say we have a synchronized method.
This synchronized method is having a logic of getting a record (counter) and incrementing/ updating back and returns the updated value.

Scenario :
1. call this synchronized method through a method not marked @async.
2. Call this synchronized method from a method marked @async.

To test this with multiple threads, I did step 1 and 2 inside a loop with counter 10.

I could see, the synchronized method is behaving as asynchronous between these 2 threads.

When I remove @enableasyc, the method is returning all unique sequence values.

So, my question is, does @enableasynch invalidates the behavior of method "synchronized" ?

Please clarify.

NaveenSundarK
Автор

Are you really typing so fast or is it accelerated video?

dennismeissel
Автор

Thanks. Really enjoy your tutorials. I am also thinking of buying your course but being from a cheaper country the price is a bit high.

Thanks again.

lafundertech
Автор

Wow!!You really have a super human typing speed..












... pun intended!! :D

saurabht
Автор

What was the problem, you were trying to solve? down vote

jiggartala