1
00:00:00,800 --> 00:00:04,000
Thank you, everyone, for 
listening to this podcast. 

2
00:00:04,000 --> 00:00:10,800
Myself Vishnu VG, I am a.net 
developer, working with C, sharp

3
00:00:10,800 --> 00:00:13,600
and Cloud Technologies. 
I am from thiruvananthapuram 

4
00:00:13,600 --> 00:00:16,500
Kerala state, which is on the 
southernmost part of India. 

5
00:00:16,800 --> 00:00:20,400
I have experience working with 
different Cloud providers, like,

6
00:00:20,700 --> 00:00:24,400
Microsoft Azure, Amazon web 
services, in addition to that. 

7
00:00:24,400 --> 00:00:27,800
I am a community builder for aw 
storage of scale. 

8
00:00:29,400 --> 00:00:34,300
I have a podcast as well as a 
YouTube channel, where I host 

9
00:00:34,900 --> 00:00:39,700
episodes that are related to 
programming and Cloud Concepts. 

10
00:00:41,000 --> 00:00:44,700
In addition to that a meetup 
group is also there that is 

11
00:00:44,700 --> 00:00:50,800
cloud computing coding talks, 
hyphen cloud computing, which is

12
00:00:50,800 --> 00:00:56,600
available on me tape In case you
are interested, please do check 

13
00:00:56,600 --> 00:00:59,900
out those. 
This podcast is available on all

14
00:01:00,100 --> 00:01:05,000
leading podcast platform. 
Today, we are going to discuss 

15
00:01:05,000 --> 00:01:07,800
about the microservices 
architecture. 

16
00:01:09,600 --> 00:01:18,400
With examples from the leading 
cloud provider AWS, for Amazon, 

17
00:01:18,400 --> 00:01:23,000
web services, the concepts that 
you are learning through this 

18
00:01:23,000 --> 00:01:28,000
podcast equally applies to all 
other Cloud providers as well as

19
00:01:28,000 --> 00:01:35,700
of now recording date of 24th. 
June 2010, t to the major three 

20
00:01:35,700 --> 00:01:39,700
vendors in Cloud. 
Our first one is the am On web 

21
00:01:39,700 --> 00:01:43,300
services second or news, 
Microsoft Azure and third on 

22
00:01:43,300 --> 00:01:51,600
mice gcp. and when organizations
develop application, with having

23
00:01:51,600 --> 00:01:57,700
a lot of teams each specializing
in their own language and 

24
00:01:57,700 --> 00:02:02,800
capabilities, the micro service 
architecture is getting very 

25
00:02:02,800 --> 00:02:08,000
popular because nowadays through
the cloud services, like AWS 

26
00:02:08,400 --> 00:02:13,500
different services are provided 
by thumb, so organization can 

27
00:02:13,500 --> 00:02:17,400
demand some of the services 
whenever they're requiring 

28
00:02:17,600 --> 00:02:19,900
required for their application 
development. 

29
00:02:20,200 --> 00:02:24,300
They can use the service pay for
the service or the time which 

30
00:02:24,400 --> 00:02:28,300
they are using the service and 
then they can entirely shut down

31
00:02:28,300 --> 00:02:31,200
that service. 
So Space on demand. 

32
00:02:31,200 --> 00:02:36,800
Cloud computing has triggered 
the microservices mode of 

33
00:02:36,800 --> 00:02:41,400
development in a rapid way. 
Even though microservices 

34
00:02:41,400 --> 00:02:44,200
architecture was there in the 
earlier times as well. 

35
00:02:44,400 --> 00:02:49,600
It was not that much popular 
asks of these days because of 

36
00:02:49,600 --> 00:02:55,900
the, the main reason for that is
the cloud computing. 

37
00:02:57,200 --> 00:03:02,200
So the cloud is one of the 
trending topics out these days 

38
00:03:02,200 --> 00:03:08,000
and every developer or every a 
sparing developer needs to be 

39
00:03:08,000 --> 00:03:11,900
aware of these Cloud Concepts 
along with their application 

40
00:03:11,900 --> 00:03:15,900
development, that is very 
critical for better developing 

41
00:03:15,900 --> 00:03:18,900
their application. 
If you are dealing with some 

42
00:03:18,900 --> 00:03:24,800
kind of tribal application for 
some kind, maybe you don't need 

43
00:03:24,800 --> 00:03:29,400
to invest in Cloud. 
You can You can create a server 

44
00:03:30,100 --> 00:03:34,500
in your own infrastructure, some
organizations are still doing 

45
00:03:34,500 --> 00:03:39,300
that if the application they are
developing as not any score for 

46
00:03:40,100 --> 00:03:44,200
that kind of scalable or that 
kind of development so forth, I 

47
00:03:44,200 --> 00:03:47,700
will application it is fine. 
But when it comes to the 

48
00:03:47,800 --> 00:03:52,200
organization level or the MNC 
swear, lot of company starts 

49
00:03:52,200 --> 00:03:56,500
using the load of companies 
began developing. 

50
00:03:57,000 --> 00:03:59,200
Applications for massive 
clients. 

51
00:03:59,800 --> 00:04:02,900
Of course, they expect huge 
level of scalability. 

52
00:04:03,400 --> 00:04:07,600
So they consider all these 
things from the initial stage. 

53
00:04:07,800 --> 00:04:11,200
So instead of developing a 
monolithic application, that is 

54
00:04:11,200 --> 00:04:13,500
the trend. 
That was there in the older 

55
00:04:13,500 --> 00:04:18,000
times of software development, 
Simone in the monolithic concept

56
00:04:18,300 --> 00:04:22,600
of development. 
A single code base is there and 

57
00:04:22,600 --> 00:04:25,700
that single codebase is 
developed and deployed in the 

58
00:04:25,700 --> 00:04:28,400
early. 
That is called monolithic a 

59
00:04:28,400 --> 00:04:30,700
single code base to understand 
that. 

60
00:04:30,700 --> 00:04:35,900
It is very easy but when it 
comes to making change or 

61
00:04:35,900 --> 00:04:39,400
whenever the client record, some
change in that application, it 

62
00:04:39,400 --> 00:04:42,900
will be very hard to deal with 
such changes because you need to

63
00:04:42,900 --> 00:04:44,900
change the entire application at
all. 

64
00:04:45,200 --> 00:04:48,700
And you need to deploy that also
at all the turns. 

65
00:04:49,400 --> 00:04:51,400
So that prevents the 
scalability. 

66
00:04:51,400 --> 00:04:56,500
And also when it comes to the 
monolithic, you can consider a 

67
00:04:56,508 --> 00:04:58,800
nap. 
Education, having distinct parts

68
00:04:58,800 --> 00:05:03,100
were some distinct Parts needs 
to have more computing power or 

69
00:05:03,100 --> 00:05:06,900
more processing power and 
sometimes a specific part of our

70
00:05:06,907 --> 00:05:10,100
application. 
Like a payment part of the 

71
00:05:10,500 --> 00:05:13,800
display part of the application 
needs more processing, power or 

72
00:05:13,800 --> 00:05:18,800
more scalability. 
So in with more with my this 

73
00:05:18,800 --> 00:05:23,500
monolithic mode of development, 
it would not be possible because

74
00:05:23,500 --> 00:05:26,600
you can only scale the 
application or the tones. 

75
00:05:27,000 --> 00:05:29,800
Or you can scale down the 
application of electrons. 

76
00:05:30,100 --> 00:05:35,200
You can't have a granular level 
of control in increasing the 

77
00:05:35,200 --> 00:05:38,000
scalability on each particular, 
part of our application. 

78
00:05:39,600 --> 00:05:45,500
So that we different 
architectures because of that 

79
00:05:45,500 --> 00:05:48,800
limitations of Monolithic 
application different, the other

80
00:05:49,200 --> 00:05:54,300
application models, how evolved 
some of them are already 

81
00:05:54,300 --> 00:05:59,400
discussed in the earlier. 
Episodes where you understood 

82
00:05:59,400 --> 00:06:03,800
about the that three tire 
pattern and old. 

83
00:06:04,900 --> 00:06:08,400
So this is microservices a bit 
more than that and this is one 

84
00:06:08,400 --> 00:06:13,100
of the trending topics out there
in the in these days as of this 

85
00:06:13,100 --> 00:06:15,300
recording. 
So understanding about micro 

86
00:06:15,300 --> 00:06:20,600
services and they be how we can 
convert and monolithic 

87
00:06:20,600 --> 00:06:25,500
application to microservices is 
also very important for an 

88
00:06:25,500 --> 00:06:29,600
application developer All those 
Concepts, we will try to learn 

89
00:06:29,600 --> 00:06:32,700
through this episode. 
So, feel free to listen this 

90
00:06:32,700 --> 00:06:35,800
episode before starting the 
episode. 

91
00:06:35,800 --> 00:06:42,300
I would like to thank Teddy 
Adriano who is working with AWS?

92
00:06:43,000 --> 00:06:46,300
I attended on of assertions and 
learned a lot related to this 

93
00:06:46,300 --> 00:06:49,900
microservices anode. 
Some of them are sharing in this

94
00:06:50,500 --> 00:06:52,100
power. 
This podcast. 

95
00:06:52,400 --> 00:06:59,200
Also, I would recommend you to I
would suggest you to read one 

96
00:06:59,200 --> 00:07:03,800
interesting book called monolith
to microservices by Sam new man 

97
00:07:04,200 --> 00:07:07,000
which is available on orally 
Publications. 

98
00:07:07,000 --> 00:07:13,000
So these are that book is very 
interesting and it provides a 

99
00:07:13,000 --> 00:07:17,100
great detail on understanding 
these microservices concepting 

100
00:07:17,100 --> 00:07:22,400
motivated the this episode will 
give you enough information. 

101
00:07:23,400 --> 00:07:27,500
To understand about what is 
microservices many of you 

102
00:07:27,500 --> 00:07:30,800
already familiar, what is micro 
services on site already covered

103
00:07:30,800 --> 00:07:33,700
some of that part in the initial
part of this episode. 

104
00:07:34,300 --> 00:07:38,900
So instead of a monolithic form 
of application development, we 

105
00:07:38,900 --> 00:07:42,800
creating microservices, we 
create independently Deployable 

106
00:07:42,800 --> 00:07:48,600
services, that work together. 
And modeled around a business 

107
00:07:48,600 --> 00:07:51,400
domain. 
So these are the more three 

108
00:07:51,400 --> 00:07:56,600
important part to understand 
Sony's, we develop and deploy, 

109
00:07:57,900 --> 00:08:01,400
develop independently, 
Deployable services. 

110
00:08:02,000 --> 00:08:06,900
So, instead of monolith, we 
develop different different 

111
00:08:06,900 --> 00:08:11,400
services that work together. 
Means they communicate together 

112
00:08:11,400 --> 00:08:17,300
via a network. 
So to understand it very easily,

113
00:08:17,400 --> 00:08:21,300
maybe you have a distant my 
earlier episode already, maybe 

114
00:08:21,300 --> 00:08:24,700
you're familiar with what a 
micro services but for those who

115
00:08:24,700 --> 00:08:29,200
are initially listening this 
podcast for them, I will just 

116
00:08:29,200 --> 00:08:30,900
give a quick brief of what it 
is. 

117
00:08:30,900 --> 00:08:35,100
So imagine if you have a website
application, you have three part

118
00:08:35,100 --> 00:08:37,400
of the front that back-end 
database. 

119
00:08:37,400 --> 00:08:40,299
And you can split these into 
different different services. 

120
00:08:40,600 --> 00:08:44,300
So that sound example, it need 
not to be I actually like that 

121
00:08:44,300 --> 00:08:49,000
because for a simple web 
application that kind of 

122
00:08:49,000 --> 00:08:55,000
splitting would be an Overkill. 
But if it is a complex 

123
00:08:55,000 --> 00:08:58,200
application, like a shopping 
cart application, you can have a

124
00:08:58,700 --> 00:09:03,500
service for displaying the 
service for fetching and 

125
00:09:03,500 --> 00:09:07,300
displaying the different 
products to the users. 

126
00:09:07,600 --> 00:09:11,600
And you can have a different 
service that handles payment a 

127
00:09:11,600 --> 00:09:13,700
node. 
That is that payment service, 

128
00:09:14,000 --> 00:09:17,600
you can have another phone 
service which deals with the 

129
00:09:17,600 --> 00:09:21,800
shipping of the services called 
the warehouse service and also 

130
00:09:21,800 --> 00:09:24,600
this way different Services can 
be Created. 

131
00:09:24,600 --> 00:09:28,700
But the important thing as we 
understood from the definition 

132
00:09:28,700 --> 00:09:33,100
is they Park together. 
These are pieces work together 

133
00:09:33,700 --> 00:09:37,200
and they are worked around a 
business domain. 

134
00:09:37,700 --> 00:09:43,900
So that means the you can think 
of Amazon shopping website. 

135
00:09:43,900 --> 00:09:47,700
As such example, it's it's 
actually it can be a 

136
00:09:47,700 --> 00:09:51,600
microservices we don't know the 
exact internal details of how it

137
00:09:51,600 --> 00:09:56,500
is made, but we can assume that 
it would be a kind of a micro 

138
00:09:56,500 --> 00:10:00,600
service based pattern its 
developed where one service will

139
00:10:00,600 --> 00:10:05,000
handle The front-end part, 
another service will handle the 

140
00:10:05,000 --> 00:10:08,500
rest of the functionality, like 
the payment processing of 

141
00:10:10,300 --> 00:10:14,200
ordered products, then the maybe
other service for handling the 

142
00:10:14,200 --> 00:10:17,600
return, and or so, this way 
different services for together 

143
00:10:18,100 --> 00:10:22,500
and each service has no relation
with other services other than 

144
00:10:22,800 --> 00:10:25,800
the communication that is 
happening through the network. 

145
00:10:27,800 --> 00:10:39,400
just just even though the we 
will be developing independently

146
00:10:39,400 --> 00:10:43,400
deployment services, that work 
together, that can be scaled 

147
00:10:43,400 --> 00:10:47,000
work together that can be scaled
independently each. 

148
00:10:47,900 --> 00:10:50,600
Maybe if there are three 
services on service can be 

149
00:10:50,600 --> 00:10:55,700
scaled up and down and it can be
changed as a developer can 

150
00:10:55,700 --> 00:10:59,000
change that as well and can be 
deployed that as well without 

151
00:10:59,000 --> 00:11:00,800
affecting any of the other 
services. 

152
00:11:01,700 --> 00:11:06,300
That means if something problem 
happens to a shopping website. 

153
00:11:06,700 --> 00:11:11,500
Where a payment system needs to,
those needs to be modified 

154
00:11:11,800 --> 00:11:15,300
developer can work on that and 
that payment service can be 

155
00:11:15,300 --> 00:11:19,600
deployed independently. 
So that helps the developers as 

156
00:11:19,600 --> 00:11:24,000
well as the deployment process 
as well because they don't need 

157
00:11:24,000 --> 00:11:28,400
to bother about the other parts 
of the application, whether that

158
00:11:29,000 --> 00:11:32,300
then don't need to confirm the 
other parts, it is working 

159
00:11:32,300 --> 00:11:36,100
properly and all a higher level 
integration test would be there.

160
00:11:36,200 --> 00:11:40,900
But Still, the level of test 
that needs to happen and the 

161
00:11:40,900 --> 00:11:44,100
level of deployment process 
needs to happen will be much 

162
00:11:44,100 --> 00:11:49,200
simpler. 
And in case if the some part of 

163
00:11:49,200 --> 00:11:52,700
the application needs to be 
modified that also can be done 

164
00:11:52,700 --> 00:11:59,600
very easily using the by taking 
advantage of the microservice 

165
00:11:59,800 --> 00:12:05,000
form of development. 
So many of the organizations are

166
00:12:05,000 --> 00:12:08,200
choosing this form of 
development for their 

167
00:12:08,200 --> 00:12:12,600
application, especially if the 
application have a scope for 

168
00:12:13,400 --> 00:12:17,900
massive scalability. 
Many of the clients also prefer 

169
00:12:17,900 --> 00:12:24,500
that then some of the other side
advantages that gets from the 

170
00:12:24,500 --> 00:12:28,700
micro service architecture is by
developing this kind of 

171
00:12:28,700 --> 00:12:32,200
architecture. 
Different teams can work 

172
00:12:32,200 --> 00:12:40,300
independently on their own 
services so maybe he is team who

173
00:12:40,300 --> 00:12:45,900
is specialized in JavaScript and
react applications can focus. 

174
00:12:46,100 --> 00:12:48,000
On the front-end part of 
application. 

175
00:12:48,000 --> 00:12:52,500
They can work their best to make
the front and look at attractive

176
00:12:52,500 --> 00:12:56,800
and user-friendly for the user 
and similar way. 

177
00:12:56,900 --> 00:13:02,000
Some other teams who are capable
for server-side development can 

178
00:13:02,000 --> 00:13:06,700
work on that part as well. 
And maybe some other team who is

179
00:13:07,200 --> 00:13:14,200
expert in developing web, apis 
for mobile or the website, they 

180
00:13:14,200 --> 00:13:16,600
can focus on that APA. 
Development. 

181
00:13:16,600 --> 00:13:20,700
So these each can be different 
different services and different

182
00:13:20,800 --> 00:13:24,700
specialized teams can work on 
their own product without 

183
00:13:24,700 --> 00:13:27,100
depending on any of the other 
teams. 

184
00:13:27,500 --> 00:13:30,100
So these are some of the 
advantages that they would get 

185
00:13:30,100 --> 00:13:35,600
and also they're not need to be 
juice any specific language for 

186
00:13:35,600 --> 00:13:37,600
the in their application 
development. 

187
00:13:38,300 --> 00:13:41,800
If a team is capable of 
developing a front-end using 

188
00:13:41,800 --> 00:13:43,800
react, they can do their that 
part. 

189
00:13:43,800 --> 00:13:48,600
And if some AP Who is working on
the backend or AP? 

190
00:13:49,000 --> 00:13:52,300
I prefer python for that ap8 of 
the pain. 

191
00:13:52,400 --> 00:13:59,400
They can choose python for that.
These are some of the advantages

192
00:13:59,400 --> 00:14:05,400
that a micro Services provided 
over the monolithic form of 

193
00:14:05,400 --> 00:14:08,000
development. 
In addition to that, the most 

194
00:14:08,000 --> 00:14:11,400
important thing is scalability, 
where each service can be scaled

195
00:14:11,400 --> 00:14:14,700
independently. 
And each service can be treated 

196
00:14:14,700 --> 00:14:18,700
for deployment independently. 
That's how about complex 

197
00:14:19,000 --> 00:14:22,800
overloads and testing 
difficulties. 

198
00:14:23,800 --> 00:14:28,200
Now too. 
I hope you In some of the points

199
00:14:28,200 --> 00:14:31,100
where we understood that there 
will be different Services, they

200
00:14:31,100 --> 00:14:34,000
will be communicated via other 
service. 

201
00:14:35,000 --> 00:14:37,900
So, this communication via 
network is important. 

202
00:14:38,200 --> 00:14:40,100
This communication can be 
happened. 

203
00:14:40,100 --> 00:14:42,300
Through most in most of the 
cases. 

204
00:14:42,300 --> 00:14:45,900
It can be happened through the 
rest EPA in the previous episode

205
00:14:45,900 --> 00:14:49,200
where I explaining where I was 
explaining about the 

206
00:14:50,500 --> 00:14:54,300
microservices architecture, I 
explained that most of the 

207
00:14:54,300 --> 00:14:57,000
services will be contacting each
other. 

208
00:14:57,100 --> 00:15:06,100
Through the rest API. so, I 
would like to Clear that some 

209
00:15:06,100 --> 00:15:11,300
may have a doubt, whether only 
Rusty p is the only standard 

210
00:15:11,300 --> 00:15:14,400
that is used for communicating 
with services. 

211
00:15:15,200 --> 00:15:21,000
Not like that. 
It depends upon the team's or 

212
00:15:21,200 --> 00:15:25,500
the architect who decides, how 
the micro service should 

213
00:15:26,400 --> 00:15:30,200
interact with each other. 
They can choose either a other 

214
00:15:30,400 --> 00:15:37,100
set of standard like gr PC or 
Laughs equal or web socket or in

215
00:15:37,100 --> 00:15:42,200
some form. 
As they kind of a synchronous 

216
00:15:42,900 --> 00:15:46,900
standard is also used where they
choose a broker, or a message 

217
00:15:46,900 --> 00:15:49,700
queue to communicate with other 
service. 

218
00:15:50,000 --> 00:15:53,300
This is important because 
imagine if to services in 

219
00:15:53,300 --> 00:15:59,700
microservice want to communicate
each other and like we discussed

220
00:15:59,700 --> 00:16:03,600
earlier microservices provide 
the capability to scale. 

221
00:16:03,700 --> 00:16:06,900
I'll and deploy independently. 
So sometimes on service may be 

222
00:16:06,900 --> 00:16:09,700
down. 
And at that time, if the other 

223
00:16:09,700 --> 00:16:13,300
surveys want to contact with 
this particular service, it may 

224
00:16:13,300 --> 00:16:16,800
not be possible. 
So synchronous communication is 

225
00:16:16,800 --> 00:16:22,500
not a good practice in 
microservices. it can it can be 

226
00:16:22,500 --> 00:16:26,600
there but you have to ask the 
developer, you have to 

227
00:16:26,600 --> 00:16:30,300
understand the entire context, 
where if there is a possibility 

228
00:16:30,300 --> 00:16:36,300
for own service to goes down, 
For maintenance, or for some 

229
00:16:36,300 --> 00:16:40,100
other purpose, then, Anna 
synchronous form of 

230
00:16:40,100 --> 00:16:47,400
communication via a message 
broker or the message queue and 

231
00:16:47,700 --> 00:16:52,200
the Amazon Services, provide 
different services for that 

232
00:16:52,200 --> 00:16:55,600
purpose. 
Like the sqs SNS, Etc. 

233
00:16:55,700 --> 00:17:00,900
We are you can leverage those 
services for communicating with 

234
00:17:01,200 --> 00:17:04,099
take communicating different 
Services as Grown-ups lie. 

235
00:17:04,400 --> 00:17:08,700
So instead of phone service 
contacts other service directly,

236
00:17:08,900 --> 00:17:13,400
they contact via a queue where 
they win. 

237
00:17:13,400 --> 00:17:16,400
Some some something they needs 
to communicate with other. 

238
00:17:16,400 --> 00:17:21,700
They insert that into the queue 
and whoever who is subscribed, 

239
00:17:21,700 --> 00:17:24,700
who whatever other surveys, 
which is subscribed to this 

240
00:17:24,700 --> 00:17:28,200
particular Q will get P, get 
notification and they can work 

241
00:17:28,200 --> 00:17:30,700
based on that. 
Message this mask in a 

242
00:17:30,700 --> 00:17:34,100
synchronous communication is 
also possible but The most 

243
00:17:34,100 --> 00:17:39,000
easiest form of the as 
communication that can happen 

244
00:17:39,000 --> 00:17:42,300
between the services is through 
the rest EP. 

245
00:17:43,100 --> 00:17:45,400
And that would be a kind of a 
synchronous form of 

246
00:17:45,400 --> 00:17:50,100
communication. 
We are there's some intermediate

247
00:17:50,100 --> 00:17:52,900
really like message, queue or 
anything happened but you need 

248
00:17:52,900 --> 00:17:56,700
to think about the possibility, 
we will we will come to that 

249
00:17:56,700 --> 00:18:00,700
topic a bit later where when we 
think about some of the common 

250
00:18:00,700 --> 00:18:05,800
pitfalls or summon common 
Standings that can happen when 

251
00:18:06,400 --> 00:18:10,700
developers develop application 
using microservices we will list

252
00:18:10,700 --> 00:18:15,100
out all those and we can 
understand a bit about those 

253
00:18:15,400 --> 00:18:18,600
misunderstandings that can 
usually happen and been 

254
00:18:18,600 --> 00:18:23,500
discussing that point. 
We can think about this, this a 

255
00:18:23,508 --> 00:18:25,700
synchronous communication and 
all those things. 

256
00:18:26,900 --> 00:18:33,900
Then another important thing is,
An ideal microservice should 

257
00:18:33,900 --> 00:18:39,400
have independent database 
because that's the way by which 

258
00:18:39,400 --> 00:18:44,500
the principle of information 
hiding based on the concept of 

259
00:18:44,500 --> 00:18:47,800
domain driven development is 
implemented. 

260
00:18:48,800 --> 00:18:52,800
So a properly architected 
microservice put ideally have a 

261
00:18:52,800 --> 00:18:56,700
single database for each 
service, and there would be 

262
00:18:56,700 --> 00:19:01,000
arguments. 
That a micro service can how 

263
00:19:01,100 --> 00:19:07,500
much shared database but that 
limits the scope of scalability?

264
00:19:08,300 --> 00:19:13,800
And the more you find a shared 
database with multiple services 

265
00:19:13,900 --> 00:19:19,100
in micro service, it defeats the
purpose of microservice and it 

266
00:19:19,100 --> 00:19:23,000
would behave like a kind of a 
distributed monod it. 

267
00:19:23,400 --> 00:19:31,000
So as far as possible reduce the
level of Bling between different

268
00:19:31,000 --> 00:19:34,800
services. 
So that terms coupling and 

269
00:19:34,800 --> 00:19:39,000
cohesion is very important to 
understand whether related to 

270
00:19:39,000 --> 00:19:49,600
micro service, we have 
understand the car, the concept 

271
00:19:49,600 --> 00:19:54,900
of microservices, but the 
concept of coupling and cohesion

272
00:19:54,900 --> 00:19:58,000
also needs to be understand very
clearly. 

273
00:19:58,100 --> 00:20:03,200
Lee from the start of 
application development, or even

274
00:20:03,200 --> 00:20:06,600
when before deciding, how the 
micro service application should

275
00:20:06,600 --> 00:20:10,700
be. 
Usually, the architects who 

276
00:20:11,600 --> 00:20:16,700
develop a micro service 
architecture, will prefer a 

277
00:20:16,800 --> 00:20:21,600
stable micro service 
architecture, where the coupling

278
00:20:21,700 --> 00:20:25,300
will be low, so low coupling and
high cohesion. 

279
00:20:26,000 --> 00:20:34,500
Coupling means how I changing or
modifying on service on my mode.

280
00:20:34,500 --> 00:20:41,000
More model modular service in 
microservice effects or request 

281
00:20:41,000 --> 00:20:44,900
a change in another so imagine 
if there are three 

282
00:20:44,900 --> 00:20:51,300
microservices, and if you want 
to change on microservice, Bill,

283
00:20:51,300 --> 00:20:53,500
it requires a change in other 
services. 

284
00:20:53,500 --> 00:20:57,900
Well, if the change is high, 
that means there is a high level

285
00:20:57,900 --> 00:21:00,500
of coupling or dependency 
between these two. 

286
00:21:01,400 --> 00:21:05,800
So, that indicates a problem 
with the architecture, so, the 

287
00:21:06,200 --> 00:21:10,000
better and architect can design 
an effective micro service 

288
00:21:10,000 --> 00:21:13,500
architecture. 
The coupling will be very low. 

289
00:21:14,200 --> 00:21:17,200
Then the cohesion is another 
important thing. 

290
00:21:17,200 --> 00:21:20,900
So coupling and cohesion, these 
to go Related. 

291
00:21:21,000 --> 00:21:25,700
So the higher, the coupling, the
lower, the cohesion, and lower 

292
00:21:25,700 --> 00:21:30,300
the coupling, that is what we 
prefer when the coupling is 

293
00:21:30,300 --> 00:21:35,600
lower, the cohesion is higher. 
So the time cohesion means how 

294
00:21:35,600 --> 00:21:40,100
how we group related code. 
So the role of an architect is 

295
00:21:40,100 --> 00:21:44,900
to decide and understand how 
their application they want to 

296
00:21:44,900 --> 00:21:48,200
be. 
So they group all the related 

297
00:21:48,200 --> 00:21:53,200
codes and they Identify the 
service boundaries so that 

298
00:21:53,200 --> 00:21:55,200
concept is part we discussed 
earlier. 

299
00:21:55,600 --> 00:21:59,100
So when whenever they architect 
an application for 

300
00:21:59,100 --> 00:22:03,800
microservices, they should 
identify all the Related Group 

301
00:22:03,800 --> 00:22:07,800
of code and they group it 
together to make it as a 

302
00:22:07,800 --> 00:22:11,000
service. 
But the example we discussed 

303
00:22:11,000 --> 00:22:15,400
before, when it comes to the 
Amazon web service, the payment 

304
00:22:15,600 --> 00:22:20,500
part is where all the payment 
related code is co he stand. 

305
00:22:20,600 --> 00:22:25,800
We can code that part is called 
includes that cohesion and that 

306
00:22:25,800 --> 00:22:28,000
can be considered as a service 
called. 

307
00:22:28,200 --> 00:22:34,200
The payments will be similar 
way, the return or refund of 

308
00:22:34,200 --> 00:22:38,200
items from Amazon that can be 
processed by other service and 

309
00:22:38,200 --> 00:22:43,400
all Code that is related to that
particular part can be grouped 

310
00:22:43,400 --> 00:22:45,900
together. 
So in this way you should 

311
00:22:45,900 --> 00:22:49,600
identify the Ender application 
related code and grouped 

312
00:22:49,600 --> 00:22:53,000
together. 
So that ideally when it comes to

313
00:22:53,000 --> 00:22:56,800
a proper microservice art 
architecture the cohesion will 

314
00:22:56,800 --> 00:22:59,500
be very high. 
That is the grouping related 

315
00:22:59,500 --> 00:23:04,500
code will be very high and the 
coupling that is a dependency of

316
00:23:04,500 --> 00:23:08,200
phone service with related to 
other service will be very low. 

317
00:23:08,700 --> 00:23:12,100
That means It's owns that 
effective architecture is in 

318
00:23:12,100 --> 00:23:15,900
place. 
Changing, on particular service 

319
00:23:16,500 --> 00:23:21,000
will require minimal change or 
no, change in the other service 

320
00:23:21,700 --> 00:23:26,500
and that should be your ideal 
when designing a micro service 

321
00:23:26,500 --> 00:23:29,000
architecture. 
It's not easy. 

322
00:23:29,400 --> 00:23:36,000
But that is the record. 
That is a record architecture 

323
00:23:36,100 --> 00:23:39,200
that every client or 
organization expect from me. 

324
00:23:39,400 --> 00:23:42,900
Software architect. 
So in short, we can say is 

325
00:23:42,900 --> 00:23:46,100
structure or micro service 
architecture is table. 

326
00:23:46,200 --> 00:23:50,100
If the cohesion is high and the 
coupling is low. 

327
00:23:50,800 --> 00:23:54,800
Then the other thing is we were 
discussing about some of the 

328
00:23:54,800 --> 00:24:00,900
general features of the micro 
service based architecture. 

329
00:24:03,500 --> 00:24:11,200
And so, individual database is a
must and that That splitting of 

330
00:24:11,700 --> 00:24:16,100
more services to different 
modular service, that should be 

331
00:24:16,100 --> 00:24:19,400
modeled around a business 
domain. 

332
00:24:19,700 --> 00:24:25,100
So these are based on the level 
of code that can be grouped 

333
00:24:25,100 --> 00:24:29,300
together and by applying the 
principle of information hiding 

334
00:24:29,300 --> 00:24:33,300
and identifying the boundaries 
based on the domain driven 

335
00:24:33,400 --> 00:24:36,900
design principles. 
So each domain can be identified

336
00:24:36,900 --> 00:24:43,700
and services can be grouped. 
Ideally, the service should be 

337
00:24:43,700 --> 00:24:47,400
grouped based on the business 
domain and not, based on the 

338
00:24:47,800 --> 00:24:51,300
skill set that developers have 
earlier. 

339
00:24:51,300 --> 00:24:55,700
We understood own of the 
benefits or the side benefits of

340
00:24:55,800 --> 00:25:01,500
the micro service architecture. 
Is that the individual teams who

341
00:25:01,500 --> 00:25:05,500
is specializing on own 
particular, language or 

342
00:25:05,500 --> 00:25:10,100
technology can develop their 
part when the developing a micro

343
00:25:10,100 --> 00:25:14,400
service architecture. 
But that, that is a side 

344
00:25:14,400 --> 00:25:17,700
advantage or one of the other 
Advantage is that an 

345
00:25:17,700 --> 00:25:22,300
organization gets by adopting, a
micro service architecture. 

346
00:25:22,700 --> 00:25:26,500
But that should not be the main 
factor in deciding or splitting 

347
00:25:26,500 --> 00:25:31,800
these different services and 
architect should split based on 

348
00:25:32,300 --> 00:25:36,200
the other factors like the 
business domain considerations, 

349
00:25:36,200 --> 00:25:39,600
and also based on the principles
of domain driven design, Not 

350
00:25:39,600 --> 00:25:43,700
based on the skills that 
individual developers have. 

351
00:25:48,400 --> 00:25:56,100
This means that they should 
debate the services initially 

352
00:25:56,200 --> 00:26:01,500
without considering all of the 
different language capabilities,

353
00:26:01,500 --> 00:26:05,600
that their teams how they can 
later chooses specific language 

354
00:26:05,600 --> 00:26:09,800
for doing a particular model or 
service that can be decided 

355
00:26:09,800 --> 00:26:14,500
later, but initially the 
grouping code or the splitting 

356
00:26:14,500 --> 00:26:20,000
of code, in the micro services, 
Conductor should be guided by 

357
00:26:20,000 --> 00:26:25,300
the business domain and domain 
based on that remained, even 

358
00:26:25,500 --> 00:26:30,100
principal another some of the 
features as well as some of the 

359
00:26:30,100 --> 00:26:35,100
considerations that you should 
be aware of as an architect or a

360
00:26:35,100 --> 00:26:37,200
developer. 
When developing microservices, 

361
00:26:37,200 --> 00:26:41,000
architecture is its independent 
deployability. 

362
00:26:41,300 --> 00:26:46,200
You should develop an 
application and split the 

363
00:26:46,600 --> 00:26:50,300
application to different 
Services based on the DVD 

364
00:26:50,300 --> 00:26:55,500
principles or the business 
domain kind of code, code 

365
00:26:55,500 --> 00:26:58,500
grouping. 
But also needs to understand 

366
00:26:58,500 --> 00:27:04,100
that once we develop these 
Services, we should be able to 

367
00:27:05,100 --> 00:27:09,400
change a service and we can 
deploy this change 

368
00:27:09,400 --> 00:27:12,300
independently. 
It should be Loosely coupled 

369
00:27:12,300 --> 00:27:16,200
that there. 
It should not be like if I want 

370
00:27:16,200 --> 00:27:17,900
to deploy one service I should 
tip. 

371
00:27:18,100 --> 00:27:19,400
Yeah, that is. 
So he says further. 

372
00:27:19,500 --> 00:27:23,300
So that indicates a dependency 
between services, so that's not 

373
00:27:23,300 --> 00:27:25,700
an ideal micro service 
architecture. 

374
00:27:26,100 --> 00:27:30,600
In an idea architecture, you as 
a developer or the Ops, can 

375
00:27:31,200 --> 00:27:36,300
simply select a service, modify 
it and deploy it independently, 

376
00:27:36,300 --> 00:27:40,500
and it will work. 
And also, sometimes as we 

377
00:27:40,600 --> 00:27:43,500
understood sometimes on, surveys
may go down. 

378
00:27:43,800 --> 00:27:46,300
So asynchronous form of 
communication between the 

379
00:27:46,300 --> 00:27:48,500
services, may not be. 
I deal. 

380
00:27:49,000 --> 00:27:53,000
So, if you expect some Services 
require frequent maintenance or 

381
00:27:53,000 --> 00:27:57,100
frequency range, it should be 
developed in such a way by using

382
00:27:57,100 --> 00:28:00,800
an intermediate queue or some 
other form of a synchronous 

383
00:28:00,800 --> 00:28:04,000
communication so that they can 
communicate with each other. 

384
00:28:07,300 --> 00:28:14,700
Then there should be a contract 
needs to be established properly

385
00:28:15,500 --> 00:28:18,200
to communicate with the 
different services. 

386
00:28:19,200 --> 00:28:23,600
As you are aware from the 
previous talks. 

387
00:28:23,600 --> 00:28:27,300
And also in the beginning of 
this episode, I mentioned some 

388
00:28:27,700 --> 00:28:32,900
like the services needs to 
communicate with each other. 

389
00:28:32,900 --> 00:28:38,500
Through the networks that can be
via rest API that can be by a gr

390
00:28:38,500 --> 00:28:41,100
PC. 
Or it can be via graphql, 

391
00:28:41,100 --> 00:28:48,800
whatever, whatever. 
Kind of Metro methods can be 

392
00:28:49,000 --> 00:28:53,900
Adopted or standards can be 
adopted, but there should be a 

393
00:28:54,900 --> 00:29:00,600
well-defined and stable contract
that needs to be exist between 

394
00:29:00,600 --> 00:29:05,700
the services because each 
services will be developing by 

395
00:29:05,800 --> 00:29:08,900
individual teams. 
So they should have a clear 

396
00:29:08,900 --> 00:29:12,900
understanding that they will be 
conducting some services for 

397
00:29:12,900 --> 00:29:17,000
some other services for some 
data, it can be a direct 

398
00:29:17,000 --> 00:29:18,800
communication to some other 
service. 

399
00:29:18,900 --> 00:29:21,800
Yes, or it can be through a 
message, queue, through Anna 

400
00:29:21,800 --> 00:29:26,300
signals, passion as well, but 
that contract or that stable 

401
00:29:26,300 --> 00:29:29,500
definition of EP, and it's 
contract should be there. 

402
00:29:31,100 --> 00:29:35,200
That should not be. 
There shouldn't be any confusion

403
00:29:35,200 --> 00:29:39,500
with that, otherwise, if one 
team who is working on on 

404
00:29:39,500 --> 00:29:44,000
service changes, its APA, it 
affects out the other team as 

405
00:29:44,000 --> 00:29:46,500
well because they are working 
independently. 

406
00:29:46,500 --> 00:29:54,400
So proper well, defined Abel 
contracts, contracts with avail 

407
00:29:54,400 --> 00:29:58,700
divided APA. 
And if there is no backward 

408
00:29:58,700 --> 00:30:02,800
compatibility, that you are 
planning for River APA or your 

409
00:30:02,800 --> 00:30:08,300
service, make sure all the other
teams who are working on the 

410
00:30:08,300 --> 00:30:11,500
micro different other services 
should be aware of it, otherwise

411
00:30:11,900 --> 00:30:15,400
there will be sudden surprise 
for the other teams when 

412
00:30:15,400 --> 00:30:18,800
whenever you you or your team 
makes a change. 

413
00:30:18,900 --> 00:30:21,200
Known service. 
It will affect the other. 

414
00:30:21,900 --> 00:30:23,900
So proper contract should be 
there. 

415
00:30:24,200 --> 00:30:27,700
Second thing is, you should 
avoid at all cost that database,

416
00:30:27,700 --> 00:30:33,400
sharing database, sharing is an 
Andy patterning, microservices, 

417
00:30:34,100 --> 00:30:38,900
the owner of the common reasons 
that many developers. 

418
00:30:39,300 --> 00:30:46,000
How many people would argue is 
that they can include the 

419
00:30:46,008 --> 00:30:50,700
business logic in database. 
Date, which can be in the form 

420
00:30:50,700 --> 00:30:54,700
of a that I stored, procedure or
function, and they can share 

421
00:30:54,700 --> 00:30:59,900
with other services. 
This practice is terribly wrong.

422
00:31:01,300 --> 00:31:06,700
It defeats the purpose of 
scalability, especially if you 

423
00:31:06,700 --> 00:31:10,900
use an system. 
Like RDS RDS is relational 

424
00:31:10,900 --> 00:31:15,100
database service in Amazon web 
services. 

425
00:31:15,100 --> 00:31:20,000
If you look into the portal, 
they have Rise to their services

426
00:31:20,000 --> 00:31:23,500
into different categories. 
So those of you who want a 

427
00:31:23,500 --> 00:31:31,800
database like a SQL server or 
MySQL or the Oracle can go to 

428
00:31:32,000 --> 00:31:36,800
the the the RTS section and they
can select the particular 

429
00:31:37,900 --> 00:31:40,900
database. 
They like for their application 

430
00:31:40,900 --> 00:31:43,900
development, they can choose 
either SQL or Oracle or 

431
00:31:43,900 --> 00:31:49,200
whatever. 
And many of the application 

432
00:31:49,200 --> 00:31:54,300
developers, who develop 
application using the Rd B Ms, 

433
00:31:54,300 --> 00:31:58,300
relational database management 
system or the title base. 

434
00:31:58,300 --> 00:32:01,800
That if we use for storing 
transactional data in 

435
00:32:01,800 --> 00:32:07,000
application, they usually go 
with a patterned, like, creating

436
00:32:07,000 --> 00:32:11,100
a load of stored procedure where
they include the business logic 

437
00:32:11,100 --> 00:32:16,200
inside stored procedure. 
That practice is really bad. 

438
00:32:17,600 --> 00:32:21,300
And it is enough, the challenge 
happens when migrating an 

439
00:32:21,300 --> 00:32:24,500
existing monolithic applications
to micro service. 

440
00:32:24,900 --> 00:32:31,100
So when migration happens, the 
developer needs to extract all 

441
00:32:31,100 --> 00:32:35,900
the logic that is hidden inside 
the database stored procedures, 

442
00:32:36,900 --> 00:32:42,600
and share, and develop it as 
model, our service to avoid that

443
00:32:42,600 --> 00:32:44,800
kind of problem. 
If you are developing a new 

444
00:32:44,800 --> 00:32:49,400
application, don't Anything. 
Any business logic inside stored

445
00:32:49,400 --> 00:32:53,800
procedure? 
Or function or in anything at 

446
00:32:53,800 --> 00:32:57,300
the database side database. 
I keep it simple. 

447
00:32:57,400 --> 00:33:01,600
Its purpose is just to store 
data get data as fast as 

448
00:33:01,600 --> 00:33:04,000
possible. 
And not for storing business 

449
00:33:04,000 --> 00:33:08,000
logic, business logic. 
It should reside with the modal 

450
00:33:08,000 --> 00:33:12,700
our services, it can be inside 
any of the different model, our 

451
00:33:12,700 --> 00:33:17,800
services that we splitted. 
So again, understand again, it 

452
00:33:17,800 --> 00:33:23,700
will be better. 
Do not store any business logic 

453
00:33:23,700 --> 00:33:29,100
inside database. 
And if it is a rdbms, it's it 

454
00:33:29,100 --> 00:33:32,800
would be a great problem because
when it comes to the micro 

455
00:33:32,800 --> 00:33:36,900
service architecture, ideally 
you should have a different 

456
00:33:36,900 --> 00:33:41,600
separate database for each 
service, otherwise it would not 

457
00:33:41,600 --> 00:33:50,900
be an ideal micro service 
architecture and There are some 

458
00:33:50,900 --> 00:33:55,400
cases where you can have a 
common database, but it's not 

459
00:33:55,400 --> 00:33:57,600
recommended just for your 
understanding. 

460
00:33:58,200 --> 00:34:02,100
If you feel that you can use a 
database and share it among 

461
00:34:02,100 --> 00:34:06,500
different Services, make sure it
should be a scalable database. 

462
00:34:06,500 --> 00:34:11,300
Like Amazon dynamodb, it's not 
an rdbms. 

463
00:34:11,300 --> 00:34:15,699
It's a nosql database. 
Where it is, used for storing, 

464
00:34:15,699 --> 00:34:22,199
the user sessions and all in 
better, and it can handle those 

465
00:34:22,199 --> 00:34:27,000
users State and sessions better 
than a relational database. 

466
00:34:27,600 --> 00:34:30,300
And it's, it's also scalable as 
well. 

467
00:34:31,500 --> 00:34:36,199
If you are using such a kind of 
database which is scalable, it's

468
00:34:36,199 --> 00:34:41,300
fine. 
But Rd B Ms. It's it's an old 

469
00:34:41,600 --> 00:34:46,400
kind of Technology. 
It's provides limited scaling 

470
00:34:46,400 --> 00:34:49,000
only. 
It can provide vertical scaling 

471
00:34:49,000 --> 00:34:53,699
as well as scaling in some way 
through boarding an old but not 

472
00:34:53,699 --> 00:34:58,600
to a level that is equivalent to
the level of services in 

473
00:34:58,600 --> 00:35:03,200
microservices very service can 
be Candidly massively scaled. 

474
00:35:06,000 --> 00:35:09,800
So database, each database and 
separate database should be 

475
00:35:09,800 --> 00:35:15,900
there. 
Many application developers 

476
00:35:15,900 --> 00:35:23,300
prefer to use the rdbms, like 
SQL server or the Oracle or 

477
00:35:23,300 --> 00:35:28,100
MySQL as 35 to standard. 
But ideally the trend should be 

478
00:35:28,100 --> 00:35:33,200
like rdbms can be used, but it 
can be used for storing the 

479
00:35:33,200 --> 00:35:36,900
transaction data. 
And don't use it for sharing 

480
00:35:36,900 --> 00:35:40,500
between different services. 
And second thing is like for 

481
00:35:40,500 --> 00:35:45,000
storing other user related sir, 
Insane or try to use something 

482
00:35:45,000 --> 00:35:53,300
like nosql database. 
I think we have covered some of 

483
00:35:53,300 --> 00:35:58,200
the record, very important 
things that are related to micro

484
00:35:58,200 --> 00:36:00,900
Services by understanding these 
things. 

485
00:36:00,900 --> 00:36:04,000
You can develop a micro service 
architecture in that way. 

486
00:36:06,300 --> 00:36:09,200
Because if you are new to micro 
service architecture, and 

487
00:36:09,200 --> 00:36:12,300
someone in the team is telling 
that next project we are going 

488
00:36:12,300 --> 00:36:16,700
to work is developing based on 
micro service architecture 

489
00:36:17,000 --> 00:36:21,200
naturally you would fall into a 
Confucian how it is. 

490
00:36:21,200 --> 00:36:24,600
Looks like what is micro service
O microservice symbol? 

491
00:36:24,600 --> 00:36:28,400
You will be you can understand 
some of the concept I mentioned 

492
00:36:28,400 --> 00:36:32,900
earlier revisit or listen. 
The first part of this episode 

493
00:36:32,900 --> 00:36:36,300
again and again and can 
understand how someone The 

494
00:36:36,300 --> 00:36:38,000
characteristics of micro 
service. 

495
00:36:38,200 --> 00:36:42,300
In addition to that, you can 
also go through the book more 

496
00:36:42,300 --> 00:36:45,600
note, it's to microservices and 
that will also help you to 

497
00:36:45,600 --> 00:36:50,500
understand some of the features 
or definitions or distinctive 

498
00:36:50,500 --> 00:36:55,000
features or how a microservice 
our texture should look like. 

499
00:36:55,000 --> 00:37:00,700
And then you can, you can 
develop application or if you 

500
00:37:00,700 --> 00:37:04,000
have you have if you are working
in existing microservice 

501
00:37:04,000 --> 00:37:09,200
architecture by understanding 
These Concepts you can you can 

502
00:37:11,000 --> 00:37:15,500
better work on that application,
you can very effectively work on

503
00:37:15,500 --> 00:37:18,900
that application, and even can 
fix some of the existing issues 

504
00:37:19,600 --> 00:37:24,900
that may have happened as a 
result of bad coding practices. 

505
00:37:26,200 --> 00:37:31,000
now, the next important thing, 
or I will defend 8 

506
00:37:32,000 --> 00:37:38,600
misunderstandings, That can 
happen When developing the 

507
00:37:38,600 --> 00:37:42,400
microservice problem, this is 
not particular to microservice. 

508
00:37:42,400 --> 00:37:47,600
This is a problem when usually 
happens when an application 

509
00:37:47,600 --> 00:37:52,600
development, becomes it kind of 
a distributed mode of computing.

510
00:37:52,600 --> 00:37:57,000
A distributed computing is where
instead of a single monolithic 

511
00:37:57,000 --> 00:38:00,800
application, use, pretty our 
code into multiple modules and 

512
00:38:00,900 --> 00:38:03,600
split across. 
It's it's not exactly 

513
00:38:03,600 --> 00:38:05,900
microservices. 
But a similar form of 

514
00:38:05,900 --> 00:38:09,500
distributed computing where one,
one part of the application 

515
00:38:09,500 --> 00:38:12,600
process is happening on on 7 and
another on another server. 

516
00:38:12,600 --> 00:38:15,900
I know. 
So whenever that kind of 

517
00:38:15,900 --> 00:38:19,900
Architecture is in place, there 
can happen in a set of 

518
00:38:19,900 --> 00:38:22,800
misunderstandings. 
And based on that 

519
00:38:22,800 --> 00:38:26,900
misunderstandings developers 
proceed with coding. 

520
00:38:27,300 --> 00:38:30,500
And after some time, they 
realize that their application 

521
00:38:30,500 --> 00:38:34,600
may not work effectively. 
Because of this understanding 

522
00:38:34,600 --> 00:38:39,400
these misunderstandings or the 
fallacies of distributed 

523
00:38:39,400 --> 00:38:42,500
computing is a good read. 
So you can search in Google 

524
00:38:43,000 --> 00:38:47,500
about the fallacies of 
distributed computing where you 

525
00:38:47,500 --> 00:38:53,100
will get an idea. 
Now I will explain one by on or 

526
00:38:53,100 --> 00:38:57,100
the more important points 
related to that 

527
00:38:57,400 --> 00:39:01,300
misunderstandings and how we can
also understand how we can 

528
00:39:01,400 --> 00:39:04,300
tackle those things. 
When it comes to microservice 

529
00:39:04,300 --> 00:39:09,300
architecture to repent. 
So we have split our 

530
00:39:09,300 --> 00:39:13,900
application, we have selected a 
proper technology, we can we 

531
00:39:13,900 --> 00:39:16,400
have understood that, okay? 
This should be communicated with

532
00:39:16,400 --> 00:39:20,300
other with the proper contract 
and all and whatever ways we 

533
00:39:20,300 --> 00:39:23,200
have understood so far, we have 
developed our application. 

534
00:39:23,600 --> 00:39:29,500
But the, let's take the pasta 
misunderstanding and they are 

535
00:39:29,500 --> 00:39:32,200
mentioning the network is 
reliable. 

536
00:39:34,100 --> 00:39:40,500
So we have our internet, we have
the unlimited internet with High

537
00:39:40,500 --> 00:39:43,600
Speed Internet, available at our
home, and we have that firm 

538
00:39:43,600 --> 00:39:49,100
conviction in our mind that the 
internet is stable. even though,

539
00:39:49,100 --> 00:39:53,300
occasionally internet Goes Down 
Still during the application 

540
00:39:53,400 --> 00:39:57,200
development, we may not think 
about all those things, but our 

541
00:39:57,200 --> 00:40:03,100
application may be used by the 
our clients will use that from 

542
00:40:03,100 --> 00:40:07,700
under label connection under the
label networks and all Because 

543
00:40:07,700 --> 00:40:11,700
of this, the assumption that the
network will be reliable or 

544
00:40:11,700 --> 00:40:16,600
network is reliable is a kind of
a misunderstanding. 

545
00:40:18,200 --> 00:40:21,800
And related to network. 
There are some other things like

546
00:40:21,800 --> 00:40:30,500
Latin see bandwidth capability 
bandwidth and will be limited, 

547
00:40:30,900 --> 00:40:34,100
then the so we can take the 
first three things. 

548
00:40:34,100 --> 00:40:36,100
So the first one is the network 
is reliable. 

549
00:40:36,100 --> 00:40:40,300
That is on misunderstanding. 
We usually how When developing 

550
00:40:40,300 --> 00:40:42,400
applications second one is 
latency zero. 

551
00:40:42,400 --> 00:40:48,800
Like we expect that the those 
who are using this Application 

552
00:40:48,800 --> 00:40:53,900
will have a high-speed unlimited
internet where latency 0. 

553
00:40:54,100 --> 00:40:59,900
Usually, this may not be true. 
Because at some time or some 

554
00:40:59,900 --> 00:41:05,900
point of time, these issues can 
arise even in high speed areas 

555
00:41:06,500 --> 00:41:09,700
where some time, some problem 
happens. 

556
00:41:09,700 --> 00:41:13,200
And the network goes down or its
speed goes down. 

557
00:41:14,000 --> 00:41:16,900
Usually during that time, if 
someone is using your 

558
00:41:16,900 --> 00:41:21,400
application, and if you not 
consider all these facts in 

559
00:41:21,400 --> 00:41:25,500
mind, it will be a problem and 
they will blame your 

560
00:41:25,500 --> 00:41:34,200
application. 
To avoid this kind of problem. 

561
00:41:34,700 --> 00:41:41,400
I read different patterns can be
used like the retry pattern or 

562
00:41:41,400 --> 00:41:48,700
the circuit breaker pattern. 
I will cover a different episode

563
00:41:48,700 --> 00:41:52,200
for explaining, all those thing.
In short retry, pattern is 

564
00:41:52,200 --> 00:41:55,700
simple to understand like if 
your service is contacting some 

565
00:41:55,700 --> 00:41:59,700
other service and if there is no
return coming from that service,

566
00:41:59,800 --> 00:42:03,600
it should retry on. 
No, two times we we cannot 

567
00:42:03,600 --> 00:42:07,000
expect that. 
I try to happen indefinitely 

568
00:42:07,000 --> 00:42:11,300
because if imagine if that 
service is down and if you are 

569
00:42:11,300 --> 00:42:14,900
not relying on any form of a 
synchronous communication 

570
00:42:14,900 --> 00:42:22,800
pattern like Q or broker, then 
indefinitely the service will 

571
00:42:22,800 --> 00:42:29,100
try to get something from the 
other surface and it goes like 

572
00:42:29,100 --> 00:42:32,000
an infinite Loop to avoid that 
right? 

573
00:42:32,000 --> 00:42:35,600
Ray should be there with a 
circuit breaker pattern. 

574
00:42:35,800 --> 00:42:41,400
Like, after some point of time, 
it should, it should fail and it

575
00:42:41,400 --> 00:42:45,200
should try only after some time,
so that kind of mechanism should

576
00:42:45,200 --> 00:42:50,000
be there. 
Second thing is we assume that 

577
00:42:50,100 --> 00:42:59,200
users of bandwidth indefinite or
their Network structure is this 

578
00:42:59,200 --> 00:43:05,600
way or that way and we don't 
think about compressing before 

579
00:43:05,600 --> 00:43:09,700
uploading to is 3 or something. 
Other some other storage 

580
00:43:09,700 --> 00:43:15,500
Services, all those factors we 
should be aware of. 

581
00:43:15,500 --> 00:43:20,200
So before Uploading some file or
using some files from some other

582
00:43:20,200 --> 00:43:22,600
service. 
We should think about how much 

583
00:43:22,600 --> 00:43:26,200
impact that file transfer is 
going to make, will it work 

584
00:43:26,200 --> 00:43:28,300
properly in load transfer 
system? 

585
00:43:28,600 --> 00:43:33,800
Will there be proper streamed? 
Base timing based download is 

586
00:43:33,800 --> 00:43:37,100
there for an asynchronous 
download pattern is there or 

587
00:43:37,100 --> 00:43:41,200
something like that. 
So whenever whenever I 

588
00:43:41,600 --> 00:43:45,600
communication is happening, 
other than the normal kind of G 

589
00:43:45,600 --> 00:43:49,000
is an orgy Erp sea level of 
communication happening, we 

590
00:43:49,000 --> 00:43:53,200
should be aware of all these. 
Like, how much bandwidth that is

591
00:43:53,200 --> 00:43:56,400
going to consume how much time 
it will take one service to 

592
00:43:56,400 --> 00:44:00,500
download on particular file from
other service, and on, so over 

593
00:44:00,500 --> 00:44:04,500
from a different storage area, 
in addition to that, we can also

594
00:44:04,500 --> 00:44:08,100
consider like if we upload a 
file, simply a file to the 

595
00:44:08,100 --> 00:44:13,100
storage area like S3, Amazon S3,
you should history have an 

596
00:44:13,100 --> 00:44:17,400
unlimited bandwidth. 
But what about if Budget is 

597
00:44:17,400 --> 00:44:20,300
limited and the storage cost 
goes high. 

598
00:44:20,600 --> 00:44:24,600
That will be a problem. 
As an application developer, we 

599
00:44:24,600 --> 00:44:26,500
should aware of all those 
things. 

600
00:44:26,800 --> 00:44:30,200
So the understanding about the 
eight fallacies of distributed 

601
00:44:30,200 --> 00:44:34,100
computing and if you relate that
with the micro service 

602
00:44:34,200 --> 00:44:39,400
architecture, it will be a good 
thing by which you can eliminate

603
00:44:39,400 --> 00:44:44,100
some of the mistakes that can 
happen for a micro service 

604
00:44:44,100 --> 00:44:47,600
architecture. 
So consider that When developing

605
00:44:47,600 --> 00:44:52,300
the application, then the second
thing is whenever then the other

606
00:44:52,300 --> 00:44:57,000
thing, So the that 
misunderstanding part is now 

607
00:44:57,000 --> 00:45:00,200
over next. 
We will think about how we can 

608
00:45:00,200 --> 00:45:04,300
organize the teams in an 
organization that part is also 

609
00:45:04,300 --> 00:45:08,700
very important to consider 
suppose if you have a team that 

610
00:45:08,700 --> 00:45:12,800
is developing, if you, if your 
organization has a set of teams 

611
00:45:13,100 --> 00:45:16,900
that are working on different 
services with related to micro 

612
00:45:16,900 --> 00:45:20,600
Services architecture, they 
should communicate with each 

613
00:45:20,600 --> 00:45:23,300
other. 
And they should also have 

614
00:45:23,300 --> 00:45:26,000
communication with the actual 
customers as well. 

615
00:45:27,400 --> 00:45:35,100
In the usual. 
In an usual, typical it 

616
00:45:35,100 --> 00:45:40,700
organization. 
We can see a kind of Cielo based

617
00:45:41,500 --> 00:45:45,300
structure where technical 
leadership will be handling by 

618
00:45:45,300 --> 00:45:48,500
on particular team. 
So there will be a technical 

619
00:45:48,600 --> 00:45:54,800
leadership team like the CTO or 
CIO who who is contacting the 

620
00:45:54,800 --> 00:45:58,600
management or the project 
management people. 

621
00:45:58,600 --> 00:46:02,700
And that project management 
people is responsible To deal 

622
00:46:02,700 --> 00:46:06,600
with the development team or 
delivery team and they will 

623
00:46:06,600 --> 00:46:08,600
develop and deliver the 
application. 

624
00:46:08,900 --> 00:46:12,300
So that technical leadership 
part is on part of the 

625
00:46:12,300 --> 00:46:15,300
organization. 
They remain as an independent 

626
00:46:15,300 --> 00:46:20,400
Silo and similar way there will 
be other section of the 

627
00:46:20,400 --> 00:46:24,700
organization where a product 
owner team is actually dealing 

628
00:46:24,700 --> 00:46:27,900
with the customers. 
They work as another Silo. 

629
00:46:27,900 --> 00:46:31,500
So this technical leadership and
product owner will communicate 

630
00:46:31,500 --> 00:46:32,200
it. 
Each other. 

631
00:46:32,600 --> 00:46:38,200
But at times, only like, if 
there is some change happens, 

632
00:46:38,900 --> 00:46:42,600
change required from from client
requirement or something, 

633
00:46:43,000 --> 00:46:46,100
usually customers contact, the 
product owner, and they will 

634
00:46:46,400 --> 00:46:48,000
contact the technical 
leadership. 

635
00:46:48,000 --> 00:46:51,600
And then the technical 
leadership will delegate that to

636
00:46:51,700 --> 00:46:54,800
the management. 
And then to management means the

637
00:46:54,800 --> 00:46:58,000
project management and then, to 
the different development and 

638
00:46:58,000 --> 00:47:02,600
delivery teams. 
So there is a It's so here. 

639
00:47:02,600 --> 00:47:05,800
The customers are directly 
contacting the product owners 

640
00:47:05,800 --> 00:47:09,900
and product, owners is actually 
understanding what the client 

641
00:47:09,900 --> 00:47:12,900
needs and then they will 
communicate that to the 

642
00:47:12,900 --> 00:47:16,000
technical leadership. 
There is a major challenge with 

643
00:47:16,000 --> 00:47:22,800
this kind of the structure 
because sometimes the product 

644
00:47:22,800 --> 00:47:26,300
owners may not be competent 
enough to understand all the 

645
00:47:26,300 --> 00:47:30,400
technical challenges and old and
how much time it will be 

646
00:47:30,400 --> 00:47:33,100
required for once. 
Service to deliver an old. 

647
00:47:33,200 --> 00:47:38,100
So they rather, they what they 
feel is they will understand 

648
00:47:38,100 --> 00:47:40,600
something based on their own 
understanding. 

649
00:47:41,000 --> 00:47:44,600
They may not have that kind of 
technical ability like the other

650
00:47:44,600 --> 00:47:48,300
technical teams of so they will 
come to a conclusion. 

651
00:47:48,300 --> 00:47:51,000
They, they can have a discussion
with technical leadership as 

652
00:47:51,000 --> 00:47:54,900
well, but in most of the case, 
they will came to a conclusion 

653
00:47:55,000 --> 00:47:58,100
based on their understanding. 
And they may not able to 

654
00:47:58,100 --> 00:48:01,400
correctly understand the 
requirement properly which can 

655
00:48:01,800 --> 00:48:06,100
In which can be detrimental to 
microservice form of 

656
00:48:06,100 --> 00:48:09,900
development. 
This, this, this this can be a 

657
00:48:09,908 --> 00:48:13,200
problem now, too late for micro 
service form of development 

658
00:48:13,400 --> 00:48:16,500
microservice, architecture 
development, but also can be for

659
00:48:16,500 --> 00:48:25,900
other kind of Can be for other 
kind of application development 

660
00:48:26,100 --> 00:48:30,500
models as well. 
But in this microservice 

661
00:48:31,700 --> 00:48:35,900
architecture, where different 
teams are working in different 

662
00:48:35,900 --> 00:48:38,700
services, this will be a major 
problem. 

663
00:48:40,400 --> 00:48:45,800
So they should break that cillo 
model and we should instead of 

664
00:48:45,800 --> 00:48:51,900
that we should split like the 
customer should be able to 

665
00:48:51,900 --> 00:48:56,500
directly contact the delivery 
team or the development team may

666
00:48:56,500 --> 00:49:00,500
be some person who is 
responsible for that interaction

667
00:49:00,500 --> 00:49:05,500
can be arranged and the in it 
should be the customer should be

668
00:49:05,500 --> 00:49:09,100
able to directly communicate 
with the delivery team as well. 

669
00:49:09,300 --> 00:49:14,700
To product owner. 
And then they can have a 

670
00:49:14,700 --> 00:49:17,800
supporting, technical 
leadership, team, a spell. 

671
00:49:18,200 --> 00:49:24,400
So, this way the communication 
is happening from the customer 

672
00:49:24,500 --> 00:49:29,300
directly to the delivery team or
the technical leadership, and 

673
00:49:29,300 --> 00:49:33,000
not via the product owner. 
So this can be helpful. 

674
00:49:34,100 --> 00:49:39,100
So this can be, this is called 
as a technology company stock. 

675
00:49:39,200 --> 00:49:41,700
Picture. 
Whereas some of the 

676
00:49:41,700 --> 00:49:44,000
organizations are following this
kind of thing. 

677
00:49:44,900 --> 00:49:49,000
So it breaks the kind of Cielo 
model where the product owner is

678
00:49:49,000 --> 00:49:53,000
the only person who is 
interacting with the client and 

679
00:49:53,000 --> 00:49:56,900
capturing requirements and then 
I am conveying that to the 

680
00:49:56,900 --> 00:50:00,000
delivery or developer window 
technical leadership tips. 

681
00:50:00,000 --> 00:50:03,500
So instead of that here, the 
customers are directly 

682
00:50:03,500 --> 00:50:07,100
contacting the delivery team as 
well as the product owner team, 

683
00:50:07,400 --> 00:50:10,500
and they can have a supporting 
Leadership team as well. 

684
00:50:17,900 --> 00:50:23,100
Now, we have understood the 
concept of micro services, but 

685
00:50:23,800 --> 00:50:28,700
splitting a application into too
many services, may not be an 

686
00:50:28,700 --> 00:50:33,400
effective strategy for some of 
the organization. 

687
00:50:34,800 --> 00:50:40,700
So monolith has some advantages 
where it can group some of the 

688
00:50:40,700 --> 00:50:45,700
codes there and micro service 
has its own advantages. 

689
00:50:45,700 --> 00:50:48,700
So some of the organization, one
example is show P. 

690
00:50:48,700 --> 00:50:54,300
Phi. 
S, such 00 P if5 if you search 

691
00:50:54,300 --> 00:50:58,400
in Google Shopify. 
Space. 

692
00:51:01,600 --> 00:51:06,800
Deconstructing, monolith, 
designing software, maximizes 

693
00:51:06,800 --> 00:51:13,500
deliver developer productivity, 
or you can search like this show

694
00:51:13,500 --> 00:51:17,900
P, Phi. 
S, h. 0p IFI space modular 

695
00:51:17,900 --> 00:51:23,300
monolith. 
Then you would get a blob blog 

696
00:51:23,300 --> 00:51:28,900
where they mention, how they use
the approach, similar to 

697
00:51:28,900 --> 00:51:34,500
microservices, but W modular 
phone wallet, instead of micro 

698
00:51:34,500 --> 00:51:37,000
service. 
Oh, in the episode, we are 

699
00:51:37,000 --> 00:51:41,600
discussing about micro service 
but mentioning this part is also

700
00:51:41,600 --> 00:51:51,000
important where if you there is 
a way by which we can develop a 

701
00:51:51,500 --> 00:51:54,700
kind of a different kind of 
micro service architecture 

702
00:51:54,700 --> 00:52:04,500
called the modular download it 
which can Which can which can 

703
00:52:04,900 --> 00:52:07,200
maximize productivity according 
to show people. 

704
00:52:07,200 --> 00:52:10,800
So if you go through that blow, 
you can understand some of the 

705
00:52:11,400 --> 00:52:15,700
advantages they would get and 
they're mentioning the, they 

706
00:52:15,900 --> 00:52:19,200
would get the benefits from both
the micro Services as well as 

707
00:52:19,200 --> 00:52:23,700
from the modular world. 
So if you search for that, you 

708
00:52:23,700 --> 00:52:27,100
will get an understand Shopify 
modular model it. 

709
00:52:27,100 --> 00:52:30,400
So they have written a Blog 
where how it is used. 

710
00:52:31,000 --> 00:52:36,600
But our discussion is the 
modular services or 

711
00:52:36,600 --> 00:52:41,400
microservices. 
Just I mentioned this point here

712
00:52:41,400 --> 00:52:48,300
because when when I attended 
that section they he mentioned 

713
00:52:48,300 --> 00:52:50,900
this point. 
So I would like to convey this 

714
00:52:50,900 --> 00:52:54,000
with you so you can have an 
understanding of that. 

715
00:52:54,500 --> 00:52:59,800
And also another important 
point, it's worth to consider is

716
00:53:00,300 --> 00:53:06,000
or ways possible avoid the 
distributed monod it. 

717
00:53:06,000 --> 00:53:11,000
So distributed mono death means 
it's looks like My having 

718
00:53:11,000 --> 00:53:15,300
application with the multiple 
services, but there is a tight 

719
00:53:15,300 --> 00:53:17,900
dependency between each 
services. 

720
00:53:17,900 --> 00:53:21,900
So that whenever the services 
are to be deployed, it should be

721
00:53:21,900 --> 00:53:25,600
deployed together. 
Such a system is called the 

722
00:53:25,600 --> 00:53:30,400
distributed model it. 
And we should avoid this because

723
00:53:32,600 --> 00:53:37,800
that system is developed with 
Note focus on that information 

724
00:53:37,800 --> 00:53:43,100
hiding and There is no proper 
boundary that is established 

725
00:53:43,100 --> 00:53:49,500
between Services by grouping 
related code and old and because

726
00:53:49,500 --> 00:53:56,000
of that that application became 
a distributed model it instead 

727
00:53:56,000 --> 00:53:59,500
of the modular monolith that 
which we discussed earlier. 

728
00:54:01,800 --> 00:54:05,300
And we should avoid the 
distributor monolith that over 

729
00:54:05,300 --> 00:54:09,300
caused because it will create a 
lot of problems at the later 

730
00:54:09,700 --> 00:54:13,000
stage of application 
development. 

731
00:54:13,400 --> 00:54:21,500
Then Another common problem that
many developers here or when 

732
00:54:21,500 --> 00:54:25,800
migrating existing applications 
to the micro service 

733
00:54:25,800 --> 00:54:30,400
architecture is how we deal with
some of the third-party blank 

734
00:54:30,400 --> 00:54:34,800
pose systems. 
So third-party blackbook systems

735
00:54:34,800 --> 00:54:38,900
includes some of the existing 
payroll systems, then CRM 

736
00:54:38,900 --> 00:54:44,200
systems then some organization 
have an existing EHR systems 

737
00:54:44,700 --> 00:54:50,500
Then like this, imagine do 
WordPress and the sap Etc. 

738
00:54:50,500 --> 00:54:54,400
So when how we integrate all 
those things into our existing 

739
00:54:55,000 --> 00:55:01,600
microservices or the planned 
microservice architecture, It 

740
00:55:01,600 --> 00:55:06,500
can be some form of not just 
this Blackboard system it can be

741
00:55:06,500 --> 00:55:11,200
some other system like the SAS 
software as a service model like

742
00:55:11,200 --> 00:55:16,700
the Gmail or the Office 365 or 
whatever. 

743
00:55:16,700 --> 00:55:22,400
Some kind of systems existing 
systems may be used by the 

744
00:55:22,400 --> 00:55:27,000
organization and how can we 
capture the information from all

745
00:55:27,000 --> 00:55:30,000
those because those all things 
are not in our control. 

746
00:55:31,800 --> 00:55:34,100
So, how we deal with those 
things? 

747
00:55:34,700 --> 00:55:40,700
So one answer to that thing when
it comes to microservice my 

748
00:55:40,700 --> 00:55:47,300
creation, for those systems is 
if there is a possibility for us

749
00:55:47,300 --> 00:55:51,700
to identify, the APA, says, 
underlying AP is that are 

750
00:55:51,700 --> 00:55:55,000
related to that those black book
systems. 

751
00:55:55,300 --> 00:55:59,700
Then we can identify that and 
deconstruct or decomposed into a

752
00:55:59,700 --> 00:56:03,000
different service and old. 
Sometimes it is not possible 

753
00:56:03,000 --> 00:56:07,200
like it may be a third party 
Black Box system in that case. 

754
00:56:08,100 --> 00:56:13,200
I by adopting a pattern like a 
back-end for the front, then can

755
00:56:13,200 --> 00:56:16,700
be adopted, it's very easy to 
understand back end for the 

756
00:56:16,700 --> 00:56:20,900
front end or BFF. 
If you search for BFF, you would

757
00:56:20,900 --> 00:56:26,000
get the answer. 
So back and for the front and is

758
00:56:26,000 --> 00:56:31,900
a pattern where we aggregate all
the different back and related 

759
00:56:31,900 --> 00:56:37,300
Services, it can be P or it can 
be an output from these 

760
00:56:37,300 --> 00:56:39,900
different systems. 
So somehow we should capture all

761
00:56:39,900 --> 00:56:44,600
those and we should aggregate 
that and we should return that 

762
00:56:44,600 --> 00:56:47,700
to whatever other services may 
be. 

763
00:56:47,700 --> 00:56:51,600
It can be a web or mobile so 
that is the reason why back and 

764
00:56:51,600 --> 00:56:55,500
to front. 
So it means that That pattern 

765
00:56:55,800 --> 00:57:00,000
will have. 
If you imagine that particular 

766
00:57:00,000 --> 00:57:04,800
pattern, it's I left. 
The side will be the web and the

767
00:57:04,808 --> 00:57:09,600
mobile and it will be on the 
middle side we can see the 

768
00:57:09,600 --> 00:57:12,900
aggregation and on the right 
side we can see the those 

769
00:57:12,900 --> 00:57:17,400
different third-party blank box 
systems or whatever other forms 

770
00:57:17,400 --> 00:57:21,700
of GDP is or all those things 
that we can consider. 

771
00:57:21,900 --> 00:57:25,200
This is also this be F of 
pattern can also So be used when

772
00:57:25,200 --> 00:57:30,000
we develop and the dashboards, 
sometimes we want to aggregate 

773
00:57:30,000 --> 00:57:33,900
the information from multiple 
systems, especially in this 

774
00:57:33,900 --> 00:57:37,600
case, case of micro Services 
where we need to track what is 

775
00:57:37,600 --> 00:57:39,200
happening in these different 
system. 

776
00:57:39,800 --> 00:57:43,300
So there should be a capturing 
of information from these. 

777
00:57:43,300 --> 00:57:48,400
These three are these different 
services that are running behind

778
00:57:48,400 --> 00:57:53,100
the scene and we should Capture 
all the information from there. 

779
00:57:53,500 --> 00:57:57,200
So this BF of back into 
front-end framework can be used 

780
00:57:57,200 --> 00:57:59,900
there, and then we can aggregate
all those things. 

781
00:57:59,900 --> 00:58:04,600
And then can be convey that 
think, to whatever client or 

782
00:58:04,600 --> 00:58:07,300
front and it is record. 
So it's looks like an 

783
00:58:07,300 --> 00:58:10,500
aggregation sometimes. 
We can directly collect the data

784
00:58:10,500 --> 00:58:14,700
and can be passed to the front 
end but sometimes they 

785
00:58:14,700 --> 00:58:18,900
collecting the data from the 
front end or sorry, collecting 

786
00:58:18,900 --> 00:58:20,400
the data from the different 
back-end. 

787
00:58:20,600 --> 00:58:30,200
Systems, May record some time. 
So it's not possible to Correct 

788
00:58:30,200 --> 00:58:34,900
that in real time. 
So we need to resort to either 

789
00:58:34,900 --> 00:58:39,700
some real time system so some 
form of vary by which we collect

790
00:58:39,700 --> 00:58:42,500
the data. 
We store there somewhere. 

791
00:58:42,500 --> 00:58:46,500
Ideally, possibly maybe in a 
different database and then we 

792
00:58:46,500 --> 00:58:50,800
can return that to the whatever 
client that is required. 

793
00:58:51,000 --> 00:58:57,300
This is useful for displaying 
dashboards and old Back end to 

794
00:58:57,300 --> 00:59:03,900
the front, end is the thing 
which we we should consider. 

795
00:59:03,900 --> 00:59:06,800
When we want to aggregate the 
information from different 

796
00:59:06,800 --> 00:59:12,200
multiple systems that needs to 
shows through the front door and

797
00:59:12,200 --> 00:59:16,700
that needs to be communicated to
the different other services. 

798
00:59:16,700 --> 00:59:20,000
This can be also used to this 
BFF can be also used to when we 

799
00:59:20,000 --> 00:59:25,400
deal with the black bow systems 
like the vertices or some kind 

800
00:59:25,400 --> 00:59:28,500
of Software as a service system,
where we found the camp sir the 

801
00:59:28,500 --> 00:59:32,900
data and we want to present that
ETA to some other service. 

802
00:59:34,700 --> 00:59:37,700
Okay, so that's all about the 
back. 

803
00:59:37,700 --> 00:59:41,800
End to the front that I hope you
understand how to deal with a 

804
00:59:41,808 --> 00:59:45,800
black book systems and also how 
to aggregate the data from 

805
00:59:45,800 --> 00:59:48,900
different Services. 
When there is a requirement to 

806
00:59:48,908 --> 00:59:53,500
show that on the dashboard. 
The dashboard is a mandatory 

807
00:59:54,000 --> 00:59:58,700
thing that I felt for different 
microservices because together 

808
00:59:58,700 --> 01:00:01,600
as an application, we need to 
understand whatever is happening

809
01:00:01,600 --> 01:00:08,400
in different system. 
A proper capture of information 

810
01:00:08,400 --> 01:00:12,000
from these different micro 
services and to be presented 

811
01:00:12,000 --> 01:00:16,100
that to the user in form of 
dashboard, or whoever person who

812
01:00:16,100 --> 01:00:21,600
is responsible for using the 
application, will be an ideal 

813
01:00:21,700 --> 01:00:25,500
thing to include. 
It may not be a mandatory thing,

814
01:00:25,700 --> 01:00:30,700
but sometimes it will be useful.
Now, coming to the other 

815
01:00:30,700 --> 01:00:34,800
challenge that I faced with the 
micro Services, architecture 

816
01:00:34,900 --> 01:00:38,700
development is the concept of 
coupling in the beginning of 

817
01:00:38,700 --> 01:00:41,500
session. 
We understood like they're 

818
01:00:42,100 --> 01:00:45,900
decoupling should be low and the
cohesion should be high. 

819
01:00:47,300 --> 01:00:50,700
Cohesion means the grouping of 
code and the coupling means the 

820
01:00:52,500 --> 01:00:57,100
the dependency of phone service 
with the other service. 

821
01:00:58,100 --> 01:01:00,800
Say can be other forms of 
coupling as well. 

822
01:01:01,200 --> 01:01:06,000
And some of the other forms of 
coupling, which also we need to 

823
01:01:06,000 --> 01:01:12,100
avoid, When developing Microsoft
service architecture one such 

824
01:01:12,200 --> 01:01:15,900
coupling is the implementation, 
coupling it can be understood 

825
01:01:15,900 --> 01:01:20,200
like in the case of a shopping 
website where we usually see 

826
01:01:20,200 --> 01:01:26,700
recommendations on Amazon We can
assume that there will be a 

827
01:01:26,700 --> 01:01:31,100
recommendation service that is 
responsible for understanding 

828
01:01:31,100 --> 01:01:36,000
the recommendations. 
So one common Pitfall or 

829
01:01:36,000 --> 01:01:40,200
misunderstanding that can happen
for a recommendation service 

830
01:01:40,200 --> 01:01:43,500
development team or whoever who 
is specializing in that 

831
01:01:43,500 --> 01:01:48,400
particular micro Services, they 
will be directly contacting the 

832
01:01:48,400 --> 01:01:53,300
database. 
And they will be capturing the 

833
01:01:53,300 --> 01:01:58,800
order as well as the customer 
information and then they create

834
01:01:58,800 --> 01:02:02,700
a recommendation. 
So instead of that, the better 

835
01:02:02,700 --> 01:02:09,400
way is to create a separate EPA,
which capture the data from that

836
01:02:09,500 --> 01:02:13,200
order. 
Apart only. 

837
01:02:13,200 --> 01:02:17,000
So whenever an order is happen 
that will be captured somewhere 

838
01:02:17,400 --> 01:02:23,800
and from that order IPA as some 
or IP or wherever that odor is, 

839
01:02:23,800 --> 01:02:28,200
stored, it can be in a 
relational database or it can be

840
01:02:28,200 --> 01:02:32,300
in some other database like a 
nosql. 

841
01:02:32,900 --> 01:02:36,000
It depends upon the 
implementation and the 

842
01:02:36,200 --> 01:02:39,900
recommendation engine or the 
recommendation service should 

843
01:02:39,900 --> 01:02:44,300
contact that. 
Order area via an EP called the 

844
01:02:44,300 --> 01:02:48,000
oh drapey and through that way, 
only, they should fetch the 

845
01:02:48,000 --> 01:02:51,800
order information. 
So this means there is no tight 

846
01:02:51,800 --> 01:02:54,800
coupling between the 
recommendation system and the 

847
01:02:55,500 --> 01:02:59,800
database or the order system. 
So in between, there is an AP 

848
01:02:59,800 --> 01:03:02,600
there. 
This way implementation coupling

849
01:03:02,600 --> 01:03:06,100
can be avoided, if 
implementation coupling is on of

850
01:03:06,100 --> 01:03:09,600
the problem or Randy pattern, 
that can happen. 

851
01:03:10,000 --> 01:03:15,500
Then the other Problem is 
temporal coupling that can 

852
01:03:15,500 --> 01:03:18,500
happen. 
So this happens when imagine 

853
01:03:18,500 --> 01:03:22,400
three of the different services 
in, in, in, in shopping, he's 

854
01:03:22,400 --> 01:03:24,400
working in a shopping site is 
working. 

855
01:03:25,100 --> 01:03:28,700
For example, there may be a 
warehouse service, which is, 

856
01:03:28,900 --> 01:03:32,200
which should be responsible for 
understanding, what our items 

857
01:03:32,200 --> 01:03:36,800
are there in the warehouse. 
And there can be another service

858
01:03:36,800 --> 01:03:40,500
called the odor service, which 
gets the order from that 

859
01:03:40,500 --> 01:03:43,600
warehouse. 
Instead of ease and that can be 

860
01:03:43,600 --> 01:03:49,300
another service called the 
customer which get or that can 

861
01:03:49,300 --> 01:03:52,500
be another customer which gets 
the order of related 

862
01:03:52,500 --> 01:03:56,800
information. 
After the order is processed, so

863
01:03:56,800 --> 01:03:59,800
different services, like the 
warehouse order or the customer 

864
01:03:59,800 --> 01:04:04,600
related services. 
Will can be there for a shopping

865
01:04:04,600 --> 01:04:06,700
based application. 
This is just an example. 

866
01:04:08,000 --> 01:04:09,900
Assumption is what we are 
discussing now. 

867
01:04:10,200 --> 01:04:13,600
Imagine if the R3 service like 
Warehouse order and customer and

868
01:04:13,600 --> 01:04:21,500
each one have an SLA of .999 but
because of the delay that can 

869
01:04:21,500 --> 01:04:25,200
happen between these two, these 
three different Services, the 

870
01:04:25,300 --> 01:04:32,300
SLA can be 0.997 only because 
one service is calling the other

871
01:04:32,300 --> 01:04:35,800
service synchronously. 
So there can be a possibility. 

872
01:04:35,800 --> 01:04:41,700
Like sometimes a failure can 
happen so we can't expect the 99

873
01:04:42,900 --> 01:04:46,200
level of SLE even to the 
warehouse warehouse and the 

874
01:04:46,200 --> 01:04:52,100
order service how that kind of 
capable of that kind of SLA. 

875
01:04:52,100 --> 01:04:55,300
So even even if the three 
different services that are 

876
01:04:55,300 --> 01:04:58,800
involved in processing and in 
their order including the 

877
01:04:58,800 --> 01:05:02,100
warehouse odor Service, as well 
as the customer service a 

878
01:05:02,100 --> 01:05:08,000
cricket of or even if they have 
.99 SLA, that's a good as 

879
01:05:08,000 --> 01:05:12,300
leopard still. 
We can't provide that to the 

880
01:05:12,300 --> 01:05:17,100
final product because that at 
Point at some point of time may 

881
01:05:17,100 --> 01:05:22,300
be either on of the service can 
fail and the total SLA can be 

882
01:05:22,300 --> 01:05:25,600
.97. 
Only this would not meet the 

883
01:05:25,600 --> 01:05:29,900
compliance requirement of the 
organization to prevent that 

884
01:05:29,900 --> 01:05:35,100
introducing a message broker 
over message queue or kind of an

885
01:05:35,100 --> 01:05:40,700
asynchronous pattern in between 
and these different Jesus will 

886
01:05:40,700 --> 01:05:46,500
be ideal so that the even if on 
service fails still, when it 

887
01:05:46,500 --> 01:05:51,200
gets active we can have. 
We can confirm that we can still

888
01:05:51,200 --> 01:05:54,400
establish the point. 99 SLA 
there. 

889
01:05:58,700 --> 01:06:01,900
When it comes to the compliance 
requirement and to establish the

890
01:06:01,900 --> 01:06:07,300
compliance requirement and to 
maintain it properly, keeping 

891
01:06:07,300 --> 01:06:13,200
that in this example, it's 9.9. 
And we can, we can have an 

892
01:06:15,000 --> 01:06:18,500
Pattern called the asynchronous 
communication pattern through 

893
01:06:18,500 --> 01:06:22,900
the message broker or message 
queue that can be introduced in 

894
01:06:22,900 --> 01:06:27,900
between this Services, rather 
than directly there directly 

895
01:06:27,900 --> 01:06:34,800
interact with each other. 
Other form of coupling that we 

896
01:06:34,800 --> 01:06:39,700
can consider to avoid is the 
deployment coupling where 

897
01:06:39,700 --> 01:06:43,000
whenever I own service is 
deploying, it needs to deploy 

898
01:06:43,000 --> 01:06:46,600
with depend on other services 
and their deployment as well. 

899
01:06:46,600 --> 01:06:50,600
This usually happens when when a
service is needs to build, it 

900
01:06:50,600 --> 01:06:54,900
should get a dll from some other
services so we should break all 

901
01:06:54,900 --> 01:07:00,200
those Andy patents and we should
try as far as possible, try to 

902
01:07:00,300 --> 01:07:03,300
develop the micro service in 
Activate that it should not 

903
01:07:03,300 --> 01:07:08,300
depend on other services dll or 
other dependencies or anything 

904
01:07:08,500 --> 01:07:11,300
whenever a service needs to be 
deployed. 

905
01:07:12,100 --> 01:07:18,600
Its it should be developed and 
configured in such a way that it

906
01:07:18,600 --> 01:07:22,400
should be able to deploy 
independently without depending 

907
01:07:22,400 --> 01:07:28,900
on any of the other services. 
Then finally, the thing is 

908
01:07:28,900 --> 01:07:42,600
domain. 
Coupling so, this is like, The 

909
01:07:42,600 --> 01:07:47,800
main coupling, how we can 
understand is to understand by 

910
01:07:47,800 --> 01:07:49,900
taking an example of a shopping 
website. 

911
01:07:49,900 --> 01:07:54,300
Where imagine there are three 
different services and is single

912
01:07:54,300 --> 01:07:57,300
database, is there, ideally. 
There should not be a single 

913
01:07:57,300 --> 01:08:06,600
database, but it should be have 
its own distinct database. 

914
01:08:06,600 --> 01:08:10,200
So, but for understanding this 
example, let's keep Symbol. 

915
01:08:10,200 --> 01:08:13,400
Like imagine there is an order 
processing service. 

916
01:08:13,700 --> 01:08:15,800
Then there is a warehouse 
service and then there is a 

917
01:08:15,800 --> 01:08:23,000
customer service. 
So the warehouse service which 

918
01:08:23,000 --> 01:08:29,500
is responsible for delivering 
the different identifying and 

919
01:08:30,100 --> 01:08:34,300
returning that information to 
the customer service should call

920
01:08:34,300 --> 01:08:37,500
us somehow conduct the order 
processing to get the customer 

921
01:08:37,500 --> 01:08:41,100
details and old. 
So instead of getting full list 

922
01:08:41,100 --> 01:08:44,700
of customer details, they should
get only the required details. 

923
01:08:44,700 --> 01:08:53,800
So there is there can be And 
there can be a separate data pop

924
01:08:53,800 --> 01:08:57,300
that can be created called the 
pick instruction where the 

925
01:08:58,000 --> 01:09:03,000
whenever a customer is ordered 
and information order, I product

926
01:09:03,000 --> 01:09:08,000
then that customer details and 
that customers delivery address 

927
01:09:08,000 --> 01:09:12,000
an old that old can be combined 
and can be saved into a 

928
01:09:12,000 --> 01:09:15,100
different area. 
So that this Warehouse or the 

929
01:09:15,100 --> 01:09:18,300
other responsible service who is
responsible for delivering this 

930
01:09:19,600 --> 01:09:24,100
This particular order can 
contact that part, that data 

931
01:09:24,100 --> 01:09:27,300
birth and get the detail and 
then can be delivered 

932
01:09:27,300 --> 01:09:32,899
accordingly rather than it 
directly contacts the order 

933
01:09:32,899 --> 01:09:36,399
processing information. 
So the domain of in 

934
01:09:36,399 --> 01:09:41,899
microservices, we split the 
services based on domain and it 

935
01:09:41,899 --> 01:09:45,899
should not have a direct 
dependency between each other. 

936
01:09:46,399 --> 01:09:50,600
So instead of when an order 
Processing has happened or I 

937
01:09:50,608 --> 01:09:53,500
it's it's in progress. 
Then it should create a separate

938
01:09:53,500 --> 01:09:59,100
area where it will Mark, all the
record customer and their 

939
01:09:59,100 --> 01:10:02,900
delivery information or the 
other information that is 

940
01:10:02,900 --> 01:10:06,100
required for delivery. 
And though, that information can

941
01:10:06,100 --> 01:10:12,000
be Consumed by other services 
for their purpose, instead of 

942
01:10:12,000 --> 01:10:17,400
directly directly that instead 
of directly having contact with 

943
01:10:17,400 --> 01:10:21,500
each service or so. 
And once, once I service the 

944
01:10:21,500 --> 01:10:24,700
idea, symbol on says Service, 
like the order processing has 

945
01:10:25,600 --> 01:10:29,900
got an order from a customer, it
can mark that data like the 

946
01:10:29,900 --> 01:10:33,200
customer data and the order 
details an old to a separate 

947
01:10:33,200 --> 01:10:36,100
area and the rest of the and 
that is done. 

948
01:10:36,800 --> 01:10:40,100
Then the Processing and work on 
the other hotline old. 

949
01:10:40,400 --> 01:10:45,300
But whenever I Warehouse service
record some information, it can 

950
01:10:45,300 --> 01:10:50,500
get it that, get it that from 
the place, where the order 

951
01:10:50,500 --> 01:10:54,200
processing cast Over the data. 
So this way, there is no direct 

952
01:10:54,200 --> 01:10:59,600
communication, that is happening
between these, these then the 

953
01:10:59,600 --> 01:11:05,900
other one another we can extend 
this tone more and can spend 

954
01:11:05,900 --> 01:11:10,600
like, instead of Getting and 
that detail that warehouse or 

955
01:11:10,600 --> 01:11:14,200
the customer or service, getting
detailed from that data store, 

956
01:11:14,200 --> 01:11:18,500
it can be stored into a queue, 
or somewhere where it is a 

957
01:11:18,500 --> 01:11:22,400
where, whenever I am having 
never even door, some data is 

958
01:11:22,400 --> 01:11:27,100
inserted into the into that 
message broker or Q. 

959
01:11:27,500 --> 01:11:32,800
It will be get notified by other
subscribed services. 

960
01:11:32,800 --> 01:11:38,800
Like the warehouse server 
Warehouse service or the Order 

961
01:11:38,800 --> 01:11:41,600
service. 
And that way we can minimize the

962
01:11:41,600 --> 01:11:59,400
coupling. so, this is These 
things are the most important 

963
01:11:59,400 --> 01:12:03,200
things we need to understand. 
So we need to you can search in 

964
01:12:03,200 --> 01:12:06,400
Google more about that. 
Like we should avoid the 

965
01:12:06,900 --> 01:12:11,000
different types of coupling 
between the services and going 

966
01:12:11,000 --> 01:12:14,100
into more detail. 
Coupling like the implementation

967
01:12:14,100 --> 01:12:17,400
coupling then the temporal 
coupling, where own Services 

968
01:12:17,400 --> 01:12:20,300
depending on other. 
And the total SLI will be 

969
01:12:20,300 --> 01:12:24,700
reduced further to avoid that we
can introduce a message broker 

970
01:12:24,700 --> 01:12:28,500
in between and also the In 
coupling where on and deployment

971
01:12:28,500 --> 01:12:31,600
should not deploy. 
The depend on other deployment. 

972
01:12:31,700 --> 01:12:35,600
Also, the domain coupling where 
one micro survey should not 

973
01:12:35,700 --> 01:12:39,100
depend on other service 
directly, but it should be 

974
01:12:39,100 --> 01:12:43,900
depend, depend the data from 
some other area like a message, 

975
01:12:44,000 --> 01:12:48,000
broker or IQ. 
In this way, we can understand 

976
01:12:48,900 --> 01:12:55,300
the different dependencies and 
throughout the episode. 

977
01:12:55,400 --> 01:13:00,600
So now it's like on one hour and
more so I feel we can wind up 

978
01:13:00,600 --> 01:13:06,000
this episode here and I will 
come up with a second episode as

979
01:13:06,000 --> 01:13:10,000
well that explains how we can 
migrate the micro services and 

980
01:13:10,000 --> 01:13:12,900
also it's a follow-up of this 
episode. 

981
01:13:12,900 --> 01:13:17,600
So you can listen this episode 
first and then that episode to 

982
01:13:17,600 --> 01:13:21,600
get an understanding of how you 
can migrate an existing 

983
01:13:21,800 --> 01:13:26,100
microservice are my, a monolith 
service to a micro service are 

984
01:13:26,300 --> 01:13:30,100
Texture. 
As this as we are running out of

985
01:13:30,100 --> 01:13:36,100
time for this episode idly, an 
episode many listeners would 

986
01:13:36,100 --> 01:13:38,100
say. 
It's preferable to keep it 

987
01:13:38,100 --> 01:13:42,200
within one hour. 
So I prefer to cut it down here 

988
01:13:42,600 --> 01:13:44,900
and assume it from The Next 
Episode. 

989
01:13:45,100 --> 01:13:49,000
So thank you everyone for 
listening this episode or the 

990
01:13:49,000 --> 01:13:52,900
opinions that I share through 
this podcast, a purely my 

991
01:13:52,900 --> 01:13:56,100
personal opinion. 
My selfishness VG, I am from 

992
01:13:56,200 --> 01:13:58,700
Then I made on a programmer from
thiruvananthapuram. 

993
01:13:58,700 --> 01:14:03,800
So, feel free to listen. 
Any of the episodes that are 

994
01:14:03,800 --> 01:14:08,800
available from my podcast as 
well as from My YouTube channel.

995
01:14:08,800 --> 01:14:10,600
Thank you. 
Once again for listening, we 

996
01:14:10,600 --> 01:14:15,400
will keep continuing how to 
understand more about the 

997
01:14:15,400 --> 01:14:20,900
microservices with related to 
the aw services. 

998
01:14:22,200 --> 01:14:27,300
And next episode, we will 
understand how we can migrate an

999
01:14:27,300 --> 01:14:30,600
existing model data application 
to microservices. 

1000
01:14:31,000 --> 01:14:33,200
So thank you, thank you very 
much.

