Api Led Connectivity

Mule 4 Indepth Api led connectivity and RAML Design
15 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€65.14
List Price:  €93.07
You save:  €27.92
£55.73
List Price:  £79.62
You save:  £23.88
CA$95.61
List Price:  CA$136.60
You save:  CA$40.98
A$106.30
List Price:  A$151.87
You save:  A$45.56
S$94.64
List Price:  S$135.20
You save:  S$40.56
HK$546.91
List Price:  HK$781.33
You save:  HK$234.42
CHF 63.50
List Price:  CHF 90.72
You save:  CHF 27.21
NOK kr764.69
List Price:  NOK kr1,092.46
You save:  NOK kr327.77
DKK kr485.92
List Price:  DKK kr694.20
You save:  DKK kr208.28
NZ$117
List Price:  NZ$167.15
You save:  NZ$50.15
د.إ257.06
List Price:  د.إ367.25
You save:  د.إ110.18
৳7,661.98
List Price:  ৳10,946.16
You save:  ৳3,284.17
₹5,839.65
List Price:  ₹8,342.71
You save:  ₹2,503.06
RM331.75
List Price:  RM473.95
You save:  RM142.20
₦86,437.65
List Price:  ₦123,487.65
You save:  ₦37,050
₨19,492.21
List Price:  ₨27,847.21
You save:  ₨8,355
฿2,575.56
List Price:  ฿3,679.53
You save:  ฿1,103.97
₺2,262.43
List Price:  ₺3,232.18
You save:  ₺969.75
B$357.76
List Price:  B$511.10
You save:  B$153.34
R1,296.01
List Price:  R1,851.52
You save:  R555.51
Лв127.38
List Price:  Лв181.98
You save:  Лв54.60
₩95,113.23
List Price:  ₩135,881.87
You save:  ₩40,768.63
₪260.11
List Price:  ₪371.60
You save:  ₪111.49
₱3,999.61
List Price:  ₱5,713.97
You save:  ₱1,714.36
¥10,715.43
List Price:  ¥15,308.41
You save:  ¥4,592.98
MX$1,185.45
List Price:  MX$1,693.57
You save:  MX$508.12
QR254.79
List Price:  QR364.01
You save:  QR109.21
P955.69
List Price:  P1,365.33
You save:  P409.64
KSh9,427.65
List Price:  KSh13,468.65
You save:  KSh4,041
E£3,355.67
List Price:  E£4,794.02
You save:  E£1,438.35
ብር3,989.43
List Price:  ብር5,699.43
You save:  ብር1,710
Kz58,616.62
List Price:  Kz83,741.62
You save:  Kz25,125
CLP$66,326.02
List Price:  CLP$94,755.52
You save:  CLP$28,429.50
CN¥506.51
List Price:  CN¥723.62
You save:  CN¥217.11
RD$4,049.59
List Price:  RD$5,785.38
You save:  RD$1,735.78
DA9,420.19
List Price:  DA13,457.99
You save:  DA4,037.80
FJ$157.70
List Price:  FJ$225.30
You save:  FJ$67.59
Q542.62
List Price:  Q775.21
You save:  Q232.58
GY$14,613.08
List Price:  GY$20,876.73
You save:  GY$6,263.64
ISK kr9,792.30
List Price:  ISK kr13,989.60
You save:  ISK kr4,197.30
DH706.05
List Price:  DH1,008.69
You save:  DH302.63
L1,239.86
List Price:  L1,771.31
You save:  L531.44
ден4,010.92
List Price:  ден5,730.13
You save:  ден1,719.21
MOP$562.15
List Price:  MOP$803.11
You save:  MOP$240.95
N$1,302.54
List Price:  N$1,860.85
You save:  N$558.31
C$2,571.43
List Price:  C$3,673.63
You save:  C$1,102.20
रु9,317.58
List Price:  रु13,311.40
You save:  रु3,993.82
S/262.81
List Price:  S/375.46
You save:  S/112.65
K268.53
List Price:  K383.63
You save:  K115.10
SAR262.51
List Price:  SAR375.03
You save:  SAR112.52
ZK1,879.71
List Price:  ZK2,685.42
You save:  ZK805.70
L324.19
List Price:  L463.14
You save:  L138.95
Kč1,629.65
List Price:  Kč2,328.17
You save:  Kč698.52
Ft25,373.17
List Price:  Ft36,248.95
You save:  Ft10,875.77
SEK kr758.75
List Price:  SEK kr1,083.98
You save:  SEK kr325.22
ARS$61,468.94
List Price:  ARS$87,816.53
You save:  ARS$26,347.59
Bs482.36
List Price:  Bs689.12
You save:  Bs206.75
COP$272,946.91
List Price:  COP$389,940.87
You save:  COP$116,993.96
₡35,623.88
List Price:  ₡50,893.45
You save:  ₡15,269.56
L1,732.95
List Price:  L2,475.75
You save:  L742.80
₲523,151.84
List Price:  ₲747,391.81
You save:  ₲224,239.96
$U2,683.09
List Price:  $U3,833.15
You save:  $U1,150.06
zł281.85
List Price:  zł402.67
You save:  zł120.81
Already have an account? Log In

Transcript

In this video, we are going to understand about what is this API led connectivity. Till now, what we have done is we understood how to create new applications which contains flows and flows contain orchestration logic to orchestrate with multiple services. So, is mule a perfect product for deploying web applications? No right. Basically it mule application we create flows which contain only orchestration logic, but then without a UI, how is this orchestrator flows useful? Right.

So, basically once we create an application which contains all my orchestrated flows and these flows are not for verification What we need to do is we need to expose our application as an API, maybe as a REST API or a soap API. Let's talk about rest API's. Suppose if you are new application is exposing an API. Now a web application can consume your application as an API, get the data from your mule application. And can it can display the UI. Basically, every mule application whatever we write, we have to expose it as an API so that it can be consumed by some other application.

Now, let us focus on what is this API led connectivity? Let me talk about what is this API connectivity with a practical scenario an example. Let's assume that you're developing an application for an e commerce based application company like Amazon and assume that your company is having all the inventory related data in sa p system inventory management is done through an SA p system and let's assume that you are using Salesforce for customer management and all of your order related details let's assume that you're having them in an e commerce app or e commerce based service right. And assume that some of the customer related details are also present in SAP. So customer related details are present in SAP as well as Salesforce, suppose now this is your back end asset, your organization can I say that this SAP says froze and ecommerce based system which is storing moderated data as an asset to your organization.

Yes, let's assume that your organization has these underlying assets. And one of your business unit came up with a business requirement Hey, we want a web application for seeing the order status in order history okay. So, once there is a requirement from your business, then what a team can be formed, which can develop a web application for this. So, traditionally, if you are if you are not following API led connectivity, you end up doing like this. You develop develop a web application where in this application you may write one service to aggregate customer related data. Aggregate customer related data from two systems one from SAP and from Salesforce because they're having Customer related data in both the systems SAP and Salesforce, then your e commerce system is having order related data, then what you might do is you might end up writing one service, let's say order status service which one which needs the data from the e commerce system.

And also when it is showing order status, it might need some customer related data. So your order status service may fetch the customer related data from this aggregated service. And you might end up writing one more service let's say it is order history. Service it can do is clear for us and this also needs to fetch the order related data is from the e commerce system. And of course it needs to get the customer letter data from the service whatever you have written so Your Business business team came up with such a requirement for a web application, which can show our status and our history. And your team has developed such a web application.

That's fine. You might have delivered this project on time and within your budget. But there are there is no reusability in this. What do I mean by reusability. But a second example, maybe down the line, after six months, the business team has come up with one more requirement, hey, we want this order status and order history to be viewed on a mobile app as well. Right.

But now, in this six months, some of the developers who have developed this web application might have left the organization or maybe that busy with some other work. Now what we ended up is again, developing a separate Rate application with similar kind of services, which is captured only for the mobile apps. Right. So basically, there is no reusability is it? I was not able to reuse these aggregations Service, Auto status service order history service, we end up developing a separate new application. Right, this is one thing.

And one more thing here, your services, which are writing in the web application, need to have the credentials of your organizational assets hard coded in their applications, which is not good. Why should we hard code the credentials of our assets? We don't want to do the credentials of our organizational assets to each and every application or the API. So that is one problem. So what is the solution for this That is nothing but API led connectivity. Let me explain you in detail.

Okay, let's assume that this is my SAP system which is having inventory related data as well as customer related data. And this is my Salesforce system which is airing my customer related data and this is your ecommerce application services, ecommerce asset, which has all related data. Now, the best approach is what if the core IT teams in your organization who is not belonging to any of the business units, when I say core IT team, they are not belonging to any of the business unit and they are responsible for managing the organizational aspects. So, if your core IT team can develop one new application Which interacts with SAP system and expose an API. And again, another mule application, which integrates with Salesforce and expose an API, another application which interacts with e commerce system and expose an API. These API's are talking to your underlying systems right?

We can call these API's as system API's which will talk to the underlying systems. Now, these system API's are developed by the core IT team of your organization who are not belonging to any of the business unit. Right. So somebody who is writing these API's, maybe will be hard coding the credentials to talk to these back end systems, only in these API's. Once the system API's have been developed, let's assume that a business team wants to actually develop a web application for the same use case, what are we discussed? Now the business team, what they can do is they can develop an another API, let's say, aggregate customer related data API, aggregate customers by talking to these two system API's.

One is a sap API and Salesforce API. And it exposes customer related data as an another API. Now, the product and the business team can develop one more API, which can actually consume this aggregate customer API and also the order related API from e commerce system. Let's say this is order History API. This exposes an API. And one more API, let's say order status API, which can integrate internally with this ecommerce with API, and it can get the customer to filter data from the aggregated API.

Now, again, each of this is having some business process orchestration, which contain business logic on how to expose order history, order status, and aggregate customers. This contains business process. So we call these API's as process API's. Now, once these API's are developed, let's assume that your business unit, again, is developing a web application. What this web UI can do, it can consume this process API's, they call it a status and order history and can develop them One UI on top of this process API's. So now, tomorrow if there's a requirement for mobile application, a mobile UI, basically.

So what and the team can develop a mobile UI, just by consuming or reusing these API's. So if you're following this API based approach, both mobile app and web app, both are able to reuse the existing API. So, the development effort can be less. So business logic is used in the process. Yes. And also the process API's need not know how to interact with your system with your ecommerce system or sa p systems.

They always whenever they want to get the data from the organizational assets. They this system API's are reused. Is it And let me enhance Actually, let's assume that this process APS are exposed to multiple customers right. So, what you can do is you can expose this process APS to customer one customer to customer three. So customer to customer three customer one all can actually consume these API's and they can build their own applications. But assume that there is a customer new customer for who actually want to consume the same API, but maybe he wants some additional features or maybe additional properties.

So that means customer four wants a different kind of an experience for the same API's. So in such cases, what we do is a best idea. don't expose the process API's to the end customers develop one more layer called as Experience API. And what you do is you write one more API on top of these API's. And you can export this one Experience API to customer one, customer two, customer three, and mean for another customer customer for since he's having a different experience in since the customer for one summer features, along with the existing features. Maybe we can create one more Experience API, which is actually consuming the process API's and maybe some other process API.

And you can give a different experience to customer for. So basically, even in this case, also we are reusing the process API's. So if you are developing your application using this kind of an approach This is called as API led connectivity. So what you do is for each and every requirement, you develop one API, which is nothing but we can call it as a micro service. So you can have multiple micro services in your system. And your application is connecting these API's and forming an application network.

So in this way, we can create multiple application networks using these API's. So this is called as API led connectivity. And this is encouraged by mule soft and assume that if you are deploying each API on cloud up each API based on the requirement, we can scale it individually at scale horizontally or vertically. So if particular API is getting more hits, we can of course scale only that particular API on cloud, right? So it may API led connectivity has a lot of edge. Advantages basically the usability, scalability individually, etc.

So, we will often criticize this API led connectivity. Now you understood what is API led connectivity. In the next video, we are going to design our API's using the design center will understand more about rambles, how to design your API's and later we'll see how to manage your API's. See you in next video.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.