Calling one microservice to another using application name | microservice tutorial P-8
This video is part 8th in microservice tutorial series. Here i have discussed how one microservice can call to another microservice using application name. I have used RestTemplate to call Rest API.
====================================
Git Repository for complete project
github.com/nak...
Microservice tutorial- Monolithic and microservice Architecture : Part 1
• Microservices tutorial...
Microservice tutorial- Spring Boot Application from scratch : Part 2
• Spring boot | Spring b...
Microservice tutorial- First microservice Student using Spring Boot and MySQL database : Part 3
• spring boot with mysql...
Microservice tutorial- Second microservice Course using Spring Boot and MSSQL database : Part 4
• spring boot with sql s...
Microservice tutorial- API gateway using Spring Cloud Gateway : Part 5
• Spring Cloud Gateway |...
Microservice tutorial- Eureka server working flow : Part 6
• Eureka server | micros...
Microservice tutorial- Eureka server and client implementation : Part 7
• Eureka server and clie...
Microservice tutorial- Calling one microservice from another microservice using application name: Part 8
• Calling one microservi...
Microservice tutorial- Service to service call in microservice using application name: Part 9
• Service to service cal...
Microservice tutorial- Resilience4j circuit breaker : Part 10
• Resilience4j circuit b...
Microservice tutorial- Spring Cloud sleuth : Part 11
• Spring Cloud Sleuth ex...
Microservice tutorial- Spring Cloud Zipkin : Part 12
• Spring Cloud Zipkin | ...
Microservice tutorial- Spring Cloud Config Server : Part 13
• Spring Cloud Config se...
Microservice tutorial- Spring Cloud Config client : Part 14
• Spring Cloud Config cl...
---------------------------------------------------
Please like and share video and subscribe the channel, don't forget to press bell button to get notification for upcoming videos.
Пікірлер: 24
Perfect sir 👍 ji when next videos coming
Good job
Nice
🤚
nice
👌
Bro can we use same database for both the microservices Or should have to use different dababases. Because while calling through rest template I'm getting IO Exception.
@tech_learning
2 жыл бұрын
You must be doing something wrong. You can have same database for 2 different microservices if really required. If you share your code, I might help to identify issue. Thanks for watching.
@tech_learning
2 жыл бұрын
Git Repo for complete project: github.com/nakeshsingh/microservices
Super
@tech_learning
3 ай бұрын
Thanks
hi, i am getting an error at the getForObject("url",class). I'm getting this error "Unsupported Media Type","path":"/departments/1"
@anshammohamed355
Жыл бұрын
if anyone could help that would be great!
@tech_learning
Жыл бұрын
Add Content-Type: application/json in header
@anshammohamed355
Жыл бұрын
@@tech_learning headr in postman right, I have added that already
@tech_learning
Жыл бұрын
Then u have to share your code with me. I need to see what’s wrong in code. Usually unsupported media type comes when u don’t set proper content-type as per the request
@anshammohamed355
Жыл бұрын
@@tech_learning public ResponseTemplateVO getUserWithDepartment(Long userId) { ResponseTemplateVO vo=new ResponseTemplateVO(); Users user=userRepository.findByUserId(userId); String temp="localhost:9001/departments/"+user.getDepartmentId(); Department department=restTemplate.getForObject(temp, Department.class); vo.setUser(user); vo.setDepartment(department); return vo; }
🤚🤚🤚
@tech_learning
3 жыл бұрын
Thanks 🙏