Capgemini Java Developer 4 yrs interview Questions and Answers L2 round #capgemini

USA talks
18 Apr 202425:04

Summary

TLDRThe conversation revolves around a job interview for a Java developer role. The interviewer asks technical questions regarding Java, Spring Boot, microservices, and related technologies. The candidate discusses their experience with Java 8, Lambda functions, stream APIs, and their involvement in API development using Spring Boot. They also address scenarios on sorting employee data, writing custom queries, and handling API requests. The discussion extends to testing methods, such as JUnit, and the candidate expresses interest in learning more about microservices architecture.

Takeaways

  • 😀 The candidate is a Java developer with 4.1 years of experience.
  • 📍 The candidate is currently based in Gorakpur, UP, and willing to relocate to Bangalore or Chennai for work.
  • 💻 The candidate has experience in banking and healthcare domains, working with Java, Spring Boot, and MySQL.
  • 🔧 The candidate is proficient in using Java 8 features such as Lambda expressions, Stream API, and Optional class.
  • 📝 The candidate is asked to write Java code to filter employees based on location and sort a list of employees by name and age.
  • 🛠 The candidate discusses the use of functional interfaces like Predicate, Consumer, and Supplier in Java.
  • 📈 The candidate is familiar with Spring Data JPA and its advantages over traditional Repositories.
  • 🔄 The candidate explains how to design an API to fetch the first five records from an employee table using Spring Boot.
  • 🌐 The candidate is aware of the concepts of microservices and the shift from monolithic architectures.
  • 📊 The candidate uses Actuator for monitoring and managing applications.
  • 📝 The candidate tests applications using JUnit 5.

Q & A

  • What is the job requirement mentioned in the transcript?

    -The job requires a Java developer with a good understanding of Java, Spring Boot, and microservices. Hands-on experience with CI/CD is an added advantage. The candidate should be willing to work in a hybrid model from Bangalore or Chennai.

  • What is the candidate's current location and are they willing to relocate?

    -The candidate is currently in Gorakpur, UP, but is willing to relocate. They have previously lived in Bangalore and will manage the relocation.

  • What technologies has the candidate worked with in their past projects?

    -The candidate has worked with Java, Spring Boot, Hubs framework for the front end, MySQL for the database, and has experience with APIs. They have also used Java 8 features such as Lambda expressions and Stream API.

  • What is the project methodology used by the candidate's current project?

    -The candidate's current project uses the Agile methodology with Sprints lasting 15 days.

  • What Java version has the candidate used and what features are they familiar with?

    -The candidate has used Java 8 and is familiar with Lambda functions, Function Interface, Stream API, and the Optional class.

  • How does the candidate approach writing code for filtering employees based on location?

    -The candidate would use Java to filter the employee list based on the location, specifically filtering for employees from Chennai.

  • What is the scenario given to the candidate for sorting a list of employees?

    -The candidate is asked to sort a list of employees by their names, and if names match, then sort by their age.

  • Can one functional interface inherit another, according to the candidate?

    -Yes, one functional interface can inherit another, but it will have more than one abstract method if it does so.

  • How does the candidate plan to design an API to get the first five records from an employee table?

    -The candidate would create a Spring Boot project, add MySQL driver and Spring Data JPA dependencies, configure the property file for database connection, define the entity class, create a service layer, and use a custom finder method in the repository to fetch the first five records.

  • What is the difference between a JPA repository and a traditional repository according to the candidate?

    -The candidate mentions that JPA repositories provide additional functionality like paging and sorting, which are not available in traditional repositories.

  • How does the candidate handle different output formats (JSON and XML) for an API?

    -The candidate suggests using the @ResponseBody annotation to return the appropriate format, with JSON being the default and XML handled by using a different response body configuration.

  • How has the candidate used Spring Boot Actuator in their projects?

    -The candidate has used Spring Boot Actuator for monitoring and managing the health of their deployed applications, checking for created beans, loggers, and heap usage.

Outlines

00:00

👨‍💻 Java Developer Role Overview and Introduction

In this paragraph, the speaker outlines the job requirement for a Java Developer role. Key skills required include Java, Spring Boot, Microservices, and hands-on experience with CI/CD. The role is hybrid, based in Bangalore or Chennai. The speaker briefly checks the candidate's willingness to relocate, and the candidate confirms their readiness to move from Gorakhpur, Uttar Pradesh.

05:01

👨‍💼 Candidate's Technical Background and Project Experience

The candidate introduces themselves as B. Singh with 4.1 years of experience in IT. They describe working in the banking and healthcare domains with Java, Spring Boot, and MySQL. The candidate details their experience with API support, service logic manipulation, and involvement in development tasks using Java's latest features such as Lambda expressions, Stream API, and Optional classes. They also touch on their involvement in agile methodology, working in 15-day sprints, and using Java 8.

10:04

🧑‍💻 Coding Challenge: Filter and Sort Operations

The interviewer gives the candidate a coding scenario to filter employee ages based on location (Chennai) using Java 8 features. The candidate explains how they would filter the list and extract the relevant ages. They are then asked to sort employees by name, with a secondary sort by age if the names match. The candidate suggests using Comparator, explaining its functionality compared to Comparable, and shares their understanding of functional interfaces such as Predicate, Supplier, and Consumer.

15:07

📊 API Design: Fetching Data from Database

The candidate is asked to explain how they would design an API to retrieve the first five records from an employee database. They explain how they would configure the project with necessary dependencies, use JPA Repository, and customize queries if needed. The candidate discusses the use of custom queries and native SQL to retrieve records, with additional discussion on the difference between JPA Repository and CrudRepository. They also briefly touch upon returning data in different formats like JSON and XML.

20:09

🛠 Microservices, Monolithic Architecture, and Testing

The candidate discusses microservices, including its advantages over monolithic architecture, such as easier scalability, manageability, and deployment. They explain how services in microservices architecture can be deployed separately, reducing downtime. The candidate also mentions their experience with JUnit 5 for testing service layers and repository methods. Finally, they express their willingness to learn more about microservices despite limited hands-on experience.

Mindmap

Keywords

💡Java

Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. It is a general-purpose programming language used for building various types of applications. In the video, the candidate discusses their experience with Java, particularly in the context of backend development using frameworks like Spring Boot.

💡Spring Boot

Spring Boot is an open-source Java-based framework used to create stand-alone, production-grade Spring applications. It simplifies the configuration of Spring applications and reduces the complexity of enterprise applications. The candidate mentions using Spring Boot extensively in their work, indicating its importance in modern Java development.

💡Microservices

Microservices is an architectural style that structures an application as a collection of loosely coupled services. It allows the services to be developed, deployed, and scaled independently. The candidate briefly discusses microservices, showing an understanding of the shift from monolithic architectures and the benefits of scalability and flexibility it offers.

💡CI/CD

CI/CD stands for Continuous Integration and Continuous Delivery/Deployment. It is a practice where code changes are automatically built, tested, and prepared for release. The candidate mentions having hands-on experience with CI/CD, which is a valuable skill in modern software development for ensuring code quality and efficient deployment processes.

💡Hybrid Model

A hybrid model refers to a combination of different methodologies or technologies. In the context of the video, it likely refers to a mix of remote work and in-office work. The candidate confirms their willingness to relocate for work, indicating flexibility in adapting to different work environments.

💡Lambda Functions

Lambda functions are a feature in Java 8 that allows for the creation of anonymous functions that can be passed as arguments or executed in a different thread. The candidate discusses using Lambda functions for data manipulation and collection operations, demonstrating their practical application in streamlining code.

💡Stream API

The Stream API is a part of Java 8 that allows for a high-level, functional-style operations on streams of elements, which can be used to express computations on collections in a declarative way. The candidate mentions using the Stream API for data manipulation, highlighting its role in handling collections efficiently.

💡Optional Class

The Optional class in Java is used to avoid null checks and make the code cleaner and less error-prone. It is used to represent a value that may or may not be present. The candidate discusses using the Optional class, indicating an understanding of how to handle nullable values in Java.

💡API Development

API stands for Application Programming Interface and is a set of routines, protocols, and tools for building software applications. The candidate talks about their experience in developing APIs using RESTful services, which are a cornerstone of modern web services architecture.

💡JUnit

JUnit is a unit testing framework for the Java programming language. It is used to write repeatable tests for Java code. The candidate mentions using JUnit 5 for testing service layers and repository layers, emphasizing the importance of testing in the software development lifecycle.

💡Actuator

Spring Boot Actuator is a powerful tool for monitoring and managing your application. It provides insights into what's happening in the running application. The candidate discusses using Actuator for application monitoring, showing an understanding of the importance of application health and performance monitoring.

Highlights

Requirement for a Java developer with expertise in Java Spring and microservices.

Experience with CI/CD is considered an advantage.

The candidate must be willing to work in a hybrid model from Bangalore or Chennai.

Candidate introduces himself as B. Singh with 4.1 years of IT experience.

Worked on banking and healthcare domains, primarily with Java and Spring Boot.

Experience with databases such as MySQL.

Involved in API development and service layer manipulation.

Uses Agile methodology with Sprints typically lasting 15 days.

Java 8 is the primary version used, with features like Lambda functions and Stream API.

Scenario given to write code to filter employees by location and print their ages.

Second scenario involves sorting a list of employees by name and age.

Discussion on functional interfaces like Predicate, Supplier, and Consumer.

Explanation of intermediate and terminal operations in Java Streams.

Project involves writing REST APIs for database communication.

Design approach for an API to get the first five records from an employee table.

Difference between JPA Repository and a traditional Repository.

Handling different output formats (JSON and XML) for API responses.

Use of Actuator for application monitoring and management.

Awareness of microservices architecture and its advantages over monolithic applications.

Testing applications using JUnit 5.

Transcripts

play00:01

thank you uh could you identify with the

play00:05

government em yes uh this

play00:09

one till back it's uh going beyond the

play00:14

screen till in front of the

play00:18

camera it should not cover your face it

play00:20

is covering your face

play00:34

okay thank you thanks

play00:38

for identification uh so because uh just

play00:42

a brief you on the requirement okay it's

play00:45

again a Java developer Ro uh having a

play00:48

good understanding on Java springboard

play00:50

microservices some handson on J cicd

play00:55

would be an added Advantage okay so this

play00:57

is a type of uh skill set requir and

play01:00

person has to be working from Bangalore

play01:02

or Chennai in an hybrid mod okay okay

play01:06

okay so I hope you clear with the

play01:08

requirement uh yes sir so where where

play01:11

are you based currently uh currently I'm

play01:14

in my hometown my hometown is gorakpur

play01:19

up okay so you are working I mean you

play01:24

are okay to relocate yes yes I will

play01:26

relocate no problem G uh the at the time

play01:30

of CC I live in Bangalore so

play01:32

no I will relocate I will

play01:35

manage okay so uh can you just brief

play01:39

about yourself let me know about the

play01:40

project the technology stack you have

play01:42

been working on so okay so my name is B

play01:46

Singh and I have total 4.1 year of

play01:48

experience in IT background in my first

play01:51

company intellect design Arena I work

play01:53

for a banking domain so we have a

play01:55

product like import LC export LC backto

play01:57

back LC uh this uh product based on for

play02:00

the front end we are using hubs

play02:02

framework internal framework and for the

play02:04

back end we are using mostly Java and

play02:06

spring Embassy spring boot mostly I'm

play02:09

using and for the database we are using

play02:11

MySQL and my uh recent company I working

play02:14

for healthcare domain so here also same

play02:17

we are using spring boot mostly we are

play02:20

using and some Java code Java we are

play02:22

using Java new features also we are

play02:24

using and mostly I involve in the like

play02:28

API support so whatever the requirement

play02:31

endm is coming so based on that we are

play02:33

going to manipulate that service logic

play02:34

and service layer and give the API

play02:37

support for that for the marting so

play02:39

mostly I involve in

play02:41

like take Development Area so mostly I

play02:45

work in this framework and that's it

play02:48

from my

play02:52

set sorry so in the current project what

play02:55

is the uh project methodology like are

play02:57

you using a currently yes we are using

play03:01

that aile

play03:02

methodology okay so what are what are

play03:05

the meetings or how how how what what

play03:09

duration is your

play03:10

Sprint so mostly uh in the development

play03:14

phase or Sprint is 15 days or mix to

play03:17

nextx 13 days some cases is uh mostly is

play03:20

a 15 days that is print so whatever we

play03:23

have so in within the time we are going

play03:25

to deploy all those code and in the

play03:28

Sprint

play03:30

so 15 days is

play03:31

maximum okay so what is the Java version

play03:35

you have been using so mostly we are

play03:38

using uh java8 we are using in my

play03:41

project so what are the features of

play03:44

java8 that you worked

play03:45

on so like if I'm talking about what I'm

play03:49

using like mostly we are using Lambda

play03:51

function we are using and function

play03:53

interface the function manner we are

play03:54

using and mostly for the data

play03:56

manipulation or collection object for

play03:59

the we are using a stream API and so

play04:02

there are many new features we have

play04:04

already like optional class mostly we

play04:05

are using so option class we are using

play04:09

and Lambda expression we are using

play04:11

Lambda function also we are using stream

play04:13

May mostly are

play04:15

used okay I'll give you a scenario if

play04:18

you can write a code okay if you if you

play04:20

can open notepad ID whatever I don't

play04:22

want you to run it just the logic I want

play04:25

you to write consider you have an

play04:26

employee list okay consisting of

play04:30

employee objects okay uh so employe is

play04:33

an entity consisting of ID name age

play04:37

location of the employee okay so you

play04:40

have to use Java it basically and uh

play04:45

just

play04:47

uh print the age of the employees who

play04:51

are from uh you know Chennai location

play04:55

maybe okay so we are going to print is

play05:01

uh based

play05:02

[Music]

play05:03

on location based on location like based

play05:07

on

play05:09

loc so suppose that we

play05:14

have so suppose that we have a list of

play05:19

this

play05:22

emplo EMP this is a we have a list I

play05:26

think

play05:28

so print the Age based on the location

play05:31

so we need to print the Age based on the

play05:35

location in the scenario or you can make

play05:37

it simpler we have to print the ages of

play05:39

all the employees who are from chenai

play05:46

location okay

play05:58

so gu

play06:15

filter first we need to filter that

play06:18

location locational

play06:34

based on that location we need to

play06:39

[Music]

play06:49

filter we can pass that one

play07:16

hello yeah yeah tell

play07:18

me okay so first we need to filter out

play07:23

the

play07:24

object mistake here we need to filter

play07:28

out and

play07:49

do location I think good location

play08:07

[Music]

play08:15

[Music]

play08:21

first

play08:37

this

play09:16

uh so this way we are going to print

play09:20

this

play09:23

one okay the location is CH then you're

play09:26

collecting the

play09:28

age okay so this is you get the age okay

play09:31

now I'll give you one more scenario okay

play09:34

uh first sort this same list sort this

play09:36

list by the names of the employees okay

play09:40

uh for example employee one is vikas uh

play09:43

staying in Bangalore employee 2 is sha

play09:45

staying in Mumbai employee ID 3 is

play09:48

another vas staying in Chennai okay so

play09:50

the employ ID are different but the

play09:53

names are same right so sort the

play09:55

employee list based on the names of the

play09:57

employees and if names match like one

play10:00

and three have same names then s by h of

play10:04

the

play10:08

employe so first we need to sort based

play10:11

on the name and then we having the

play10:14

duplicate

play10:15

so need to sort by the

play10:18

age

play10:21

M so first we need to sorting

play10:53

so I'm

play10:57

comparing shorted computer comparing

play11:06

not

play11:10

comping can you repeat that scenario

play11:13

once yeah yeah

play11:21

yeah the names match s by the

play11:24

h no first if the first we need to sort

play11:28

based on that

play11:31

name and then we need to name match then

play11:35

only sort

play11:38

by okay so we are going to

play11:41

short compor comparing

play12:13

so name need to start in or ascending or

play12:15

any reverse

play12:16

order yeah uh any any ORD fine that you

play12:20

want to

play12:24

[Music]

play12:27

have have

play12:31

and this one so so just

play12:38

Computing so just filter this sorting

play12:46

this I'm not sure we can use equals to

play12:50

equals to here or not

play12:54

but so so why are you using a comparator

play12:57

here and why not a comparable

play13:03

so if I'm using that so I need to pass

play13:06

that like object we need to pass o1

play13:08

comma O2 and then o1 dog name we need to

play13:12

compare compare two method we can use so

play13:16

here I'm just passing this compor do

play13:18

this function I'm directly use by

play13:20

natural order

play13:21

or

play13:23

this this way also we can use compar to

play13:26

Method we can use like I'm using that

play13:29

one also

play13:31

okay so what are some of the other

play13:33

functional interfaces that you have

play13:35

used the function interfaces like

play13:38

predicates we are using predicate

play13:41

supplier

play13:42

consumer all this predicate function

play13:44

interface we are using so only one

play13:46

abstract method is there and there is no

play13:48

restriction of static method and default

play13:52

method so like in predicate we have a

play13:55

text method and consumer we have a

play13:57

accept method this U

play13:59

abstract method we

play14:02

have okay okay uh moving ahead in this

play14:07

statement okay for example you consider

play14:09

this line number five what are the

play14:11

intermediate and terminal operations

play14:13

that you

play14:15

using okay so we have this

play14:19

filter so filter is the part of

play14:22

intermediate operation and this collect

play14:24

also the collect is a part of like

play14:26

terminal and for each also part of

play14:29

terminal and the mean Max and so in that

play14:33

intermediate operation we have reduced

play14:35

filter flat map map this part of

play14:39

intermediate this we this

play14:44

filter in

play14:46

jaace ined in

play14:48

jav yes I heard about that M some like

play14:53

previously we have some enhan in memory

play14:56

based on that like Palm engine is this

play14:59

concept is there

play15:01

permanent so it's introduced like

play15:04

enhancement is coming so m space

play15:07

introduced previously a per engine

play15:09

permanent memory space is there so some

play15:12

due to the lack of memory issue they are

play15:14

going to introduce in the metal space

play15:17

I'm not much more

play15:19

about more about but I heard about that

play15:22

space so regarding functional interfaces

play15:24

that you're mentioning can one

play15:27

functional interface inherit another

play15:28

function

play15:31

interface no see if one functional

play15:34

interface uh if yeah it can be inherit

play15:37

but uh that is not part of that function

play15:40

interface because that uh if other

play15:42

interface going to extend so so one

play15:45

abstract met is going to be the coming

play15:47

from the parent and it we defining so we

play15:49

have like a normal interface so we can

play15:52

uh yes we can extend

play15:54

that okay okay oving to uh

play16:02

your writing apis and all in your

play16:05

project currently uh yes for the like

play16:08

resource uh resource update or delete or

play16:11

fast like database communication we are

play16:14

writing Rest API so controller we are

play16:17

written for rest controller and inside

play16:18

that we are defining all those method

play16:20

which are which is going to handle that

play16:23

a protocol protocol going to

play16:26

handle can okay

play16:29

uh okay so I'll give you one scenario I

play16:32

want you to tell me how will you design

play16:33

this okay uh consider uh you have a same

play16:39

employee table if you want to write an

play16:42

API to get the first five records from

play16:45

this employee

play16:46

table okay how how will you go about

play16:49

implementing this what are the classes

play16:51

involved how will you connect to the

play16:53

database I want you to explain me on

play16:55

that okay so uh firstly whenever uh

play17:00

suppose mostly I'm using like STS I'm

play17:02

using so from the spring iner I'm going

play17:04

to create one project and if I want to

play17:07

communicate with the database so I need

play17:09

to add some for starters like for the

play17:12

database we have MyQ driver and this

play17:15

dependency we are required MyQ driver

play17:17

and data GPA this need once the project

play17:20

is going to create it so first we are

play17:22

going to configure our property file so

play17:25

inside that we are configure all the

play17:27

database related stuff like

play17:29

spring spring. data source username

play17:32

password driver name and class name all

play17:35

those things and once database is

play17:37

connected then we are going to create

play17:39

like one structure we are going to

play17:41

create for the database so for that we

play17:43

are going to create one uh like classes

play17:46

inside that we are creating a separate

play17:48

class and Mark as that class at theate

play17:50

entity class so we are going to uh

play17:53

Define classes and whatever the

play17:56

attribute I'm defining so through that

play17:58

we are going going to create the

play17:59

structure of that database so once the

play18:01

database going to be created So based on

play18:04

that we are going to write one uh

play18:06

service layer I'm going to write so in

play18:08

that service layer we are going to

play18:10

Define that method that method going to

play18:12

execute based on the requirement and

play18:14

fetching the data so for the DB like

play18:17

fetching the data so we are not directly

play18:20

we are going to fet the data from the DB

play18:23

so we are just using the like we are

play18:25

using data jpa Repository so okay GP

play18:31

repository I'm using so for that I'm

play18:33

going to create one repository CL

play18:35

repository interface extend by the data

play18:38

data GP repository and then inside if I

play18:41

extending so we just passing that ID

play18:44

comma serializable also we can pass that

play18:47

the name we can pass and then we can use

play18:49

the Inu method like find by ID find by

play18:51

name so if you want to like if you uh

play18:54

what you want to stct the

play18:56

data no I want I want you to write the

play19:00

API to get the first P records from

play19:03

employee

play19:05

table

play19:07

okay so then we are writing so we are

play19:10

writing the service class so find by

play19:12

find the data like find the users I'm

play19:15

going to create one uh service layer

play19:17

creating the one method and then

play19:19

creating the implementation I give the

play19:21

implementation for that and what about

play19:23

the repository of defining so by using

play19:25

inside that we have custom finder method

play19:28

also we can Define find my suppose that

play19:30

if I'm separate if I want to create

play19:32

separate method and execute some custom

play19:34

query so I'm just creating like find by

play19:37

name so sorted name we can that that

play19:39

type

play19:40

of no no but in this scenario when I

play19:43

need the first F

play19:44

records do you have any custom method

play19:47

which can be used or any method which

play19:49

can be used or you need to write a

play19:51

custom query yeah because like we have

play19:54

find by ID this type of method we have

play19:56

sa find by ID so I don't know it's going

play19:59

to f the

play20:00

record but we need to write I think

play20:03

custom query or native query we need to

play20:05

write in this case so that's why I

play20:08

thought we need to a custom finder

play20:10

method we can write and based on that we

play20:13

query we through that we are going to

play20:15

fire one query and then we are going to

play20:17

create the one the rest controller class

play20:20

and write one method so that method

play20:22

going to handle the HTTP request from

play20:24

the front

play20:26

end so I think this is the so what sort

play20:29

of query suppose if you want to write

play20:31

this query in a normal SQL to get the

play20:34

first how how will you write the query

play20:38

so select like select employee like

play20:40

select start from employee and ordered

play20:43

by descending and then I'm using the

play20:45

limit 1 to five then it's printing only

play20:48

the 5 code

play20:50

M so uh you said you're raising a jpa

play20:53

repository right so what's the

play20:55

difference between a jpa and a credit

play20:57

Repository

play21:00

yes so this two extra facility we are

play21:02

getting in GP repository like paging and

play21:06

shorting so that purpose we are mostly

play21:09

using I'm not using that shorting and P

play21:12

and this extra functionality we have in

play21:15

GP repository rather than

play21:18

repository okay so now consider you have

play21:22

written this AP okay and there are

play21:24

customers are going to call this

play21:27

APM some of them want an output in Json

play21:29

format and some of them need an output

play21:32

in XML format how do we handle

play21:38

this so I think some in that method

play21:42

level mostly response body we are using

play21:46

so procedure equals to some tag we are

play21:49

using so rather than Json we are stml

play21:53

object we are going to

play21:55

WR so

play21:56

some procedure equals to something that

play21:59

I'm missing that

play22:01

name okay okay uh how actuators have you

play22:08

used actuators anytime in the

play22:11

project actuator yes once we like

play22:15

develop our application so once we

play22:17

deploy that server so we are going to

play22:19

manage monitoring that application so

play22:22

that purpose we are going to use the

play22:23

acuator so yes again we are going to add

play22:26

one dependency like acuator dependenc

play22:29

and then based on that we are going to

play22:32

monitor and check the health of our

play22:34

application how many the beans is

play22:35

created that loggers and that Heap and

play22:39

something so by the actuators we can

play22:41

manage and monitoring that

play22:45

application okay so uh so the concern

play22:50

I'll talk about it are working on

play22:53

Microsoft I'm not getting

play22:57

much micros Services I'm not involved in

play23:00

that so but yes I'm aware of that and

play23:02

I'm try willing to learn more about the

play23:04

microservices recently I'm trying to

play23:07

work on that so I'm aware of that like

play23:11

what why we are switching monolithic to

play23:13

micro Services what is the advantage

play23:16

disadvantage what is the API Gateway

play23:18

Services what is the advantage or what

play23:21

is the disadvantage you have in this

play23:23

monolithic application that's so the

play23:25

everybody is trying to move to

play23:26

microservice based market so the the

play23:29

most disadvantage of Monolithic we are

play23:32

going to all the services we are binding

play23:34

at a single places so all the large

play23:37

application we are not going to break

play23:38

down that so in the main disadvantage

play23:42

whenever we are going to do the sort of

play23:44

short like we are going to do Implement

play23:47

any particular Services then it's a

play23:49

minor change then still we are going to

play23:51

the time of deployment we are going to

play23:53

deploy all the project so it's time

play23:56

going to consuming so that that is one

play23:59

reason and so that's why suppose that we

play24:01

have a microservice architecture so all

play24:04

the services work as a different

play24:06

different microservices so if any

play24:08

requirement changes or anything happen

play24:10

in the particular services so we are

play24:12

just going to uh minor change in that

play24:14

particular service and deploy separately

play24:16

them and manage that micros service

play24:19

separate team or written by the

play24:20

different different language so

play24:21

internally we are going to communicate

play24:23

with different different uh

play24:25

microservices so it's easy to manage it

play24:28

easy to deployment in easy to scalable

play24:30

our project if we follow the

play24:33

microservices rather

play24:36

than so um moving to testing part how

play24:40

how are you testing your

play24:43

application junit I

play24:46

use J unit five I use for the whatever

play24:49

the service layer and we have a

play24:51

repository like Dow layer we have if I'm

play24:53

writing one method so that time we need

play24:56

to write U test cases for that

play24:58

particular method yeah g 5 I'm used

play25:01

mostly at the test

Rate This

5.0 / 5 (0 votes)

関連タグ
Java DevelopmentInterview TipsTech SkillsSpring BootMicroservicesAPI DesignDatabase ConnectivitySoftware TestingActuator UsageJunit Testing
英語で要約が必要ですか?