Spring Tips: Distributed Locks with Spring Integration

  Рет қаралды 30,441

SpringDeveloper

SpringDeveloper

Күн бұрын

Hi Spring fans! In this installment we look at distributed locks in Spring Integration to ensure exclusive access to a shared resource in a cluster.
speaker: Josh Long

Пікірлер: 26
@Prim12398
@Prim12398 4 жыл бұрын
"Using my second favorite place.. start.....stackoverflow..." 0:55, haha , we know what You are made of :> (Good tutorial)
@al.sargent
@al.sargent 4 жыл бұрын
Great job as always Josh! I just today highlighted this video to one of my colleagues as an example of an excellent developer-oriented video.
@JimzZel
@JimzZel 2 жыл бұрын
Thank you for this video, I learned something today.
@hannesvideo
@hannesvideo 4 жыл бұрын
Ok, not much spring-integration here, I thought. But it is the LockRegistry that is used!
@khalildureidy
@khalildureidy 4 жыл бұрын
is it supposed to create the db tables automatically for the lock? or you created them manually?
@aniyt10
@aniyt10 2 жыл бұрын
Good point. I had to create this table CREATE TABLE INT_LOCK ( LOCK_KEY CHAR(36) NOT NULL, REGION VARCHAR(100) NOT NULL, CLIENT_ID CHAR(36), CREATED_DATE TIMESTAMP NOT NULL, constraint INT_LOCK_PK primary key (LOCK_KEY, REGION) );
@shubhamna1192
@shubhamna1192 3 жыл бұрын
getting initialization error for the final field ,private final LockRegistry registry;
@rajpraveenbhiwani9176
@rajpraveenbhiwani9176 3 жыл бұрын
With differenct JVMs will that solution work. And if not how can we handle?
@valix85
@valix85 5 жыл бұрын
Please in future increase font zoom in IDE and browser... Good video
@vishalsundararajan1228
@vishalsundararajan1228 4 жыл бұрын
I want a queuing approach instead of locking it, i want all the request to be processed but only one at a time
@WasifTanveer
@WasifTanveer 2 жыл бұрын
You can use some broker i.e. publisher consumer mechanism to achieve your requirement
@smithdragon6477
@smithdragon6477 2 жыл бұрын
Good demo .but no transaction controls ...
@arvindgurav9911
@arvindgurav9911 2 жыл бұрын
Can you share github repo link.
@andreslascano
@andreslascano 4 жыл бұрын
How can I do this with mongodb?
@srvmojo9190
@srvmojo9190 4 жыл бұрын
Theres good support for the same in spring data , using @Version annontation & optimistic locking or pessimistic locking even for clustered environment .
@waqasrana7891
@waqasrana7891 Жыл бұрын
@@srvmojo9190 that will throw exception so you have to retry again
@hongxing7259
@hongxing7259 Жыл бұрын
do NOT use verb in api uri, like "update", and do use correct http method PUT for update
@himanshurawal7223
@himanshurawal7223 3 жыл бұрын
Please increase the font
@janbodnar7815
@janbodnar7815 5 жыл бұрын
Arrgh, dark theme please.
@zapl80
@zapl80 5 жыл бұрын
No, please stay with the light theme. Stupid pseudo pro dark look doesn't make your code better nor is it easier to read.
@janbodnar7815
@janbodnar7815 5 жыл бұрын
@@zapl80 How old are you? Because the older you are, the more you appreciate the dark theme; it is easier on the eyes.
@lisafox9026
@lisafox9026 4 жыл бұрын
NO dark theme !!!! bad video!!!!! beeeee
@ladahofmann451
@ladahofmann451 4 жыл бұрын
J
@ladahofmann451
@ladahofmann451 4 жыл бұрын
3
Spring Tips: Organizational Consistency in your Spring Boot Applications
48:39
Spring Tips: A Gentle introduction to Spring Integration
38:51
SpringDeveloper
Рет қаралды 76 М.
Cute Barbie Gadget 🥰 #gadgets
01:00
FLIP FLOP Hacks
Рет қаралды 39 МЛН
Китайка и Пчелка 10 серия😂😆
00:19
KITAYKA
Рет қаралды 830 М.
Spring Tips: Reactive Transactions in MongoDB and R2DBC
25:04
SpringDeveloper
Рет қаралды 14 М.
Developing microservices with aggregates - Chris Richardson
1:09:50
SpringDeveloper
Рет қаралды 275 М.
Spring Office Hours: S3E20 - Live from Spring I/O
53:18
SpringDeveloper
Рет қаралды 1,2 М.
Spring Tips: Spring's Support for Kotlin Coroutines
45:32
SpringDeveloper
Рет қаралды 6 М.
Spring Tips: Virtual Threads
50:31
SpringDeveloper
Рет қаралды 9 М.
Spring Tips: Debugging Reactor Applications
53:28
SpringDeveloper
Рет қаралды 20 М.
Leadership Election with Spring Cloud Cluster - Dave Syer
28:52
SpringDeveloper
Рет қаралды 5 М.
Spring Tips: JPA
1:02:00
SpringDeveloper
Рет қаралды 20 М.
Spring Tips: Spring Statemachine
59:46
SpringDeveloper
Рет қаралды 52 М.
keren sih #iphone #apple
0:16
Muhammad Arsyad
Рет қаралды 648 М.
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 24 МЛН