Spring Boot Microservices Project Example - Part 2 | Inter Service Communication

Spring Boot Microservices Project Example - Part 2 | Inter Service Communication

Programming Techie

2 года назад

90,648 Просмотров

Spring Boot Microservices Project Example - Part 2 | Inter Service Communication

Source Code
https://github.com/SaiUpadhyayula/spring-boot-microservices-new.git

⭐️⭐️You can check out other Full Stack Project Oriented Tutorials in my Channel ⭐️⭐️

Spring Data MongoDB Tutorial: https://youtu.be/aPoJPESMJBk

Spring Boot Testing Crash Course Tutorial: https://youtu.be/aPoJPESMJBk


⭐️⭐️ You can follow me on Social Media through the below Links⭐️⭐️
Twitter: https://twitter.com/sai90_u
Blog: https://programmingtechie.com/
Dev.to: https://dev.to/saiupadhyayula
Facebook Page: https://www.facebook.com/programmingtechie

Тэги:

#spring_boot_microservices_example #spring_boot_microservices_project #spring_boot_microservices_project_example #spring_boot_microservices_tutorial
Ссылки и html тэги не поддерживаются


Комментарии:

@amarjeethria1243
@amarjeethria1243 - 11.12.2023 18:14

Can you point me to a link which has good content on Java Streams

Ответить
@garvisrobot9274
@garvisrobot9274 - 07.11.2023 13:15

Found the issue it was an empty stream.

Ответить
@garvisrobot9274
@garvisrobot9274 - 06.11.2023 18:56

Order gets placd even if sku not matches.

Ответить
@garvisrobot9274
@garvisrobot9274 - 06.11.2023 16:48

Unable to find sku codes order is placed anyways.

Ответить
@Granta_Omega
@Granta_Omega - 20.10.2023 05:50

What happens if they order more than is actually in stock?

Ответить
@dorrakadri1474
@dorrakadri1474 - 09.10.2023 16:33

what about relationships im so confused so we have for exemple student that have many courses and each one is a microservice how can we do this

Ответить
@shubhagrawal2169
@shubhagrawal2169 - 03.10.2023 19:26

instead of sending back Inventory Response to Order Service then check all match or not , i think it is better to check in Inventoryservice and sending back true/false

Ответить
@dmitriidemianov5686
@dmitriidemianov5686 - 17.09.2023 20:02

Hey, how's that rainbow indents plugin called?

Ответить
@aashishanegi4790
@aashishanegi4790 - 16.09.2023 10:27

I am getting 404 error request while hitting the inventory API in postman. As a result I am unable to get the Out of stock message and Order placed successfully message. Could you please tell me how to fix it?

Ответить
@hepi1550
@hepi1550 - 28.07.2023 18:31

The block() method should not be used and generates an error. Is there any other way to create synchronous inter services communication?

Ответить
@user-cw6pb9cs3l
@user-cw6pb9cs3l - 07.06.2023 15:58

Spring Data MongoDB Tutorial: I think you mistake here with a link

Ответить
@barsayten7222
@barsayten7222 - 30.05.2023 11:24

What is the mean of "OrderLineItems"? What we use for? Can somebody explain?

Ответить
@utsav_g
@utsav_g - 28.05.2023 14:50

anybody facing issue with lombok builder
I am getting many things but it is not working

java: cannot find symbol
symbol: method builder()
location: class com.utech.inventoryservice.dto.InventoryResponse

Ответить
@yogendraamarji7285
@yogendraamarji7285 - 11.05.2023 23:10

Really its a awesome content it can be great if we have an user registration and login also with authorization and authentication after login only user will able to access other services

Ответить
@srihariiyengar3913
@srihariiyengar3913 - 09.05.2023 20:59

I would like to enroll for this training

Ответить
@_ifly
@_ifly - 02.05.2023 20:43

in the postman when i click send it's giving me an exception "java.sql.SQLException: Field 'id' doesn't have a default value". how to solve this problem all my code is the same

Ответить
@kennedydre8074
@kennedydre8074 - 27.04.2023 22:21

Hi, I love your tutorial thus far, and you make so easy to understand and follow you. I was wondering if you had a beginner course on Spring boot that explains concepts like bean etc? Thank you in anticipation of your response.

Ответить
@nehemiahlimocheburet1411
@nehemiahlimocheburet1411 - 18.04.2023 10:33

Now, I have a problem adding EurekaClientAnnotation, the maven dependency was dowloaded but I have this error: java: cannot find symbol
symbol: class EnableEurekaClient, anyone facing the same issue [spring-cloud version: 2022.0.2]

Ответить
@juancaos01
@juancaos01 - 07.04.2023 17:26

I love the fact that you choice web client to sync communication and the way that you explain it, you're amazing. Thank you!, also I love the fact that you're very organized and that you teach to use construct injections instead of field injection. 10/10

Ответить
@Timmy-kr9mt
@Timmy-kr9mt - 26.03.2023 10:50

can I know why I always get empty array [] when use get inventory using postman?. Even the skucode is not or in DB, also return null? I have replaced findBySkuCodeIn with findAll, and it's able to return all database value.

Ответить
@melihcankilic5918
@melihcankilic5918 - 12.02.2023 19:29

very good!

Ответить
@UdayTejaOriginal
@UdayTejaOriginal - 05.02.2023 20:18

Looks like it is not enocuraged now to use block() on WebClient. I got an exception when I tried this with Spring Boot 3. I fixed it by using subscribe().

Ответить
@mohammedsardar3779
@mohammedsardar3779 - 03.01.2023 20:44

Just a thought to share, InventoryService can be added to OrderSvc as a dependency, and InventoryResponse can be accessed and reused.

Ответить
@manjunathg1207
@manjunathg1207 - 03.01.2023 10:43

Sir can u please send me this project's source code 🙏

Ответить
@yogeez123
@yogeez123 - 31.12.2022 00:09

Why should we check for each item if available or not before ordering ? We could have probably set a flag in product service so that we don't display item if not in stock or label as out of stock. Checking of each item in OrderController is not something I would go for.

Ответить
@manugalaxy14
@manugalaxy14 - 30.12.2022 21:41

Hey, one question: Why duplicate the InventoryResponse class? If these two services are designed to communicate with each other, we could add the inventory dto as a dependency to the order-service project, right?

Ответить
@ouhamzalhouceine8409
@ouhamzalhouceine8409 - 23.12.2022 01:04

Bug sur, for example if we have a order request with at least on skuCode instock, and others skucodes not existing in database, we can always place Order!! 😇 {
"orderLineItemsDtoList":[
{
"skucode": "iphone_13",
"price": 100,
"quantity":1
},
{
"skucode": "bla_bla",
"price": 100,
"quantity":1
}
]
}

any way that's a Great Tutorial, i learn a lot thanks

Ответить
@maheshy5168
@maheshy5168 - 21.12.2022 12:22

Hi, This Tutorial is really helpful. Thanks is not enough but a million thanks. Please help with below query
interviewer: How are you securing ur APIs/endpoints
me: we implemented security by using JWT
interviewer: if I have an API and that API internally calls an external API, how do you authenticate the external API?
are you using the same jwt token to authenticate internal/external APIs?
or if you are using 2 jwt tokens, then u r calling JWT server twice which is not good?

So actually he confused me, and I was blank

Please give me a perfect solution, Thanks in advance

Ответить
@rameshd8436
@rameshd8436 - 05.12.2022 06:10

Mobile view can't see font

Ответить
@BHUPATHIRAJURAJANRAJU
@BHUPATHIRAJURAJANRAJU - 30.10.2022 15:44

why not using feign client??

Ответить
@praveenjha802
@praveenjha802 - 19.10.2022 05:51

I am getting 404 error request while hiiting the inventory api in postman . can someone please help???

Ответить
@knowledgeshare1622
@knowledgeshare1622 - 10.10.2022 18:11

Pls make the webflux, react tutorial

Ответить
@ZsZw
@ZsZw - 20.09.2022 06:49

allMatch would cause problem since the stream is empty then true is returned. E.g. if you order iPad your order still would be placed even your inventory has no iPad.

Ответить
@maheshd3506
@maheshd3506 - 14.08.2022 17:23

Very informative video, thanks for your efforts

Ответить
@deanclancy6448
@deanclancy6448 - 15.05.2022 12:29

What is the point of the Product Service?

Ответить
@xdiepx
@xdiepx - 10.05.2022 13:34

Wouldn’t this be a coupling? Because order services depends on inventory services to return.

Ответить
@prajyotgajane4087
@prajyotgajane4087 - 08.05.2022 03:53

Great Tutorial so far!! I am actually coding along with you, I have just one question, not sure if you already took care of it in the future videos, but after placing the order from order service, shouldn't the inventory table column quantity decrease by the quantity ordered ?

Ответить
@tamerlannusraddinov
@tamerlannusraddinov - 06.05.2022 21:45

Thanks for tutorial. Just whant to add that, when inventoryResponses empty then stream.allMatch returns true. Need to add check ifnot empty.

Ответить
@jagadeeshbabu5227
@jagadeeshbabu5227 - 05.05.2022 22:01

Ur shared links for mongodb and spring test are same

Ответить
@nicholas1460
@nicholas1460 - 05.05.2022 09:52

Why would you have REST communication between internal services? Such a waste.

Ответить
@sujithg5873
@sujithg5873 - 01.05.2022 22:04

How to handle fallback here?

Ответить
@Cherupakstmt
@Cherupakstmt - 01.05.2022 17:13

For interservice communication why can't we use feignclient instead of webclient. Feignclient can be integrated with spring API Gateway for load balancing and url routing very easily. Can you check on that too.

Ответить
@bathientran9074
@bathientran9074 - 01.05.2022 16:20

Can you make the same course with quarkus framework

Ответить
@rajraj-xr7qx
@rajraj-xr7qx - 01.05.2022 12:45

Next part video when can we expect sir ?

Ответить
@Emerson-mv4hm
@Emerson-mv4hm - 01.05.2022 12:44

Nice! We should add a service discovery so we dont have the need to specify the ports. That’s probably what you’ll do in the next one, right? Great video! Thanks!!!

Ответить