Тэги:
#spring_boot_microservices_example #spring_boot_microservices_project #spring_boot_microservices_project_example #spring_boot_microservices_tutorialКомментарии:
Can you point me to a link which has good content on Java Streams
ОтветитьFound the issue it was an empty stream.
ОтветитьOrder gets placd even if sku not matches.
ОтветитьUnable to find sku codes order is placed anyways.
ОтветитьWhat happens if they order more than is actually in stock?
Ответить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
Ответить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
ОтветитьHey, how's that rainbow indents plugin called?
Ответить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?
ОтветитьThe block() method should not be used and generates an error. Is there any other way to create synchronous inter services communication?
ОтветитьSpring Data MongoDB Tutorial: I think you mistake here with a link
ОтветитьWhat is the mean of "OrderLineItems"? What we use for? Can somebody explain?
Ответить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
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
ОтветитьI would like to enroll for this training
Ответить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
Ответить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.
Ответить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]
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
Ответить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.
Ответитьvery good!
Ответить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().
ОтветитьJust a thought to share, InventoryService can be added to OrderSvc as a dependency, and InventoryResponse can be accessed and reused.
ОтветитьSir can u please send me this project's source code 🙏
Ответить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.
Ответить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?
Ответить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
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
Mobile view can't see font
Ответитьwhy not using feign client??
ОтветитьI am getting 404 error request while hiiting the inventory api in postman . can someone please help???
ОтветитьPls make the webflux, react tutorial
Ответить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.
ОтветитьVery informative video, thanks for your efforts
ОтветитьWhat is the point of the Product Service?
ОтветитьWouldn’t this be a coupling? Because order services depends on inventory services to return.
Ответить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 ?
ОтветитьThanks for tutorial. Just whant to add that, when inventoryResponses empty then stream.allMatch returns true. Need to add check ifnot empty.
ОтветитьUr shared links for mongodb and spring test are same
ОтветитьWhy would you have REST communication between internal services? Such a waste.
ОтветитьHow to handle fallback here?
Ответить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.
ОтветитьCan you make the same course with quarkus framework
ОтветитьNext part video when can we expect sir ?
Ответить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!!!
Ответить