Sie sind auf Seite 1von 22

MuleSoft- Anypoint Platform

Building a Microservice Ecosystem

Infosys: RDS Team


2

Micro Services Capabilities


Technology Choices
4
Micro Services Architecture
API Gateway Process Control
The Consumer
Request API {Provides façade, consolidation, mapping, security control &
Application {Choreograph}
analytics}

Look up Services Service Registry


{Knows what is running
Exposes Service where at all times}

Uses

Cluster Management
Service Service Load
Collaboration {Control, Manage, Monitor Balancer
the environment} {Ensure work is distributed
Routes
Microservice work in a scalable manner}
Application
Deployed to uses
Defined
Auto Scaling
Engine Deployed based
Manages On
Application Environment
Definition
{Codify the Deployment} Supported By Mulesoft
Container Engine
uses
{Run the load}
Microservices on Anypoint Platform
Anypoint Platform

Anypoint Design Center Anypoint Management Center

API Connector Runtime API


Studio
Designer DevKit Anypoint Exchange Manager Manager
Analytics

Hybrid Cloud Runt

Mule

Anypoint Connectors
7
Mule Building Block Forms and Possibilities
End-to-End Microservice Development Lifecycle
Analytics API Notebook
API Designer
Manage

Anypoint Exchange Anypoint Exchange


Validate Model
Engage
Design

API Console Solicit


Simulate
Feedback

API Portal
Mocking Services

Test Build
Anypoint Studio
MUnit
Anypoint Exchange
CI /CD with Mule Soft
10

DevOps with Docker


Development Operations

Build Runtime Platform Deploy, Manage, Scale

Anypoint Platform
Prod (on-premises)

Studio
Commit

Stage Runtime
Manager
API
Manager
Exchange

CI/CD
Test 3rd Party Tools

JUnit

Dev

Ship Mgmt Agent


Image
Microservices 12
Docker Best Practices

Docker
+ +
Microservices DevOps

Cohesion Low coupling Dev Cycle


1 container = 1 microservice Each container is independent Reduce in build & delivery cycle

Technology Heterogeneity
Simpler deployments Automation
Language specific to the
Only needs Docker Handoffs between tools and teams
container

Delivery Orchestration solutions Visibility


- Docker images any tech Manage complex deployments Manage, track and report
- Docker registry end-to-end software delivery
13

Use Case and Demo


14
Our Use Case For POC

Containerization of Mule
Application:

 Created RESTFul Webservices using RAML


(RESTFul API Modeling Language).
 Import RAML into Anypoint Studio.
 Created a Mule App.
 Exported the App as zip
 Downloaded the base image from mule docker
repo.
 Used docker to create image of the application.
 Execute the Mule Image

RAML API Documentation using Mule Soft


15

Use case: Mule Application


16
Use case-Create Mule Soft App Docker images using Dockerfile
Write a Dockerfile
we use a text editor to write a short Dockerfile. A Dockerfile is a recipe which describes the files, environment,
and commands that make up an image. we recipe is going to be very short.
Dockerfile
Build an image from Dockerfile
The below command reads the dockerfile in the current
FROM MuleApplication-app directory and process it instructions one by one to build an
image called dockerfile/MuleApplication on your local
ADD MuleApplication-app.zip $MULE_HOME/apps/ machine.

EXPOSE 8081:8081 $ docker build -t dockerfile/MuleApplication .

Now we can verify that the new image is on our machine


using below command.
$ docker images

Now we can run our docker image using below command.


$ docker run dockerfile/muleapplication
API Management in MuleSoft
Self-service of Microservice Consumption

• Decentralization of Micro service


access requires API Management

• Publication of APIs across LOBs

• Adapt Microservices with auto-


generated Proxies

• Apply policies in order to tailor


Microservices for specific usage

18
19

Mule Management Console


Centralized Management
and Monitoring
Fine-Grained ESB Control
Deep Diagnostics and
Auditing
Intelligent Alerting
Flexible Cluster
Management
In-Depth Event Visualization
20

Mule Deployment Options


• Deploy to the embedded test server.
• Deploy to a Mule Enterprise server.
• Publish to the Mule Management Console Application Repository.
• Deploy Mule to WebSphere App Server
• Deploy to CloudHub.
21

Next Steps
• Mulesoft App deployment options in JEE Servers and through MMC.
• API Management through Mule Management Console.
• Service orchestration.
• Containerization of Mulesoft App with Database.
Thank You

© 2013 Infosys Limited, Bangalore, India. All Rights Reserved. Infosys believes the information in this document is accurate as of its publication date; such information is subject to change without notice. Infosys acknowledges the proprietary rights of other
companies to the trademarks, product names and such other intellectual property rights mentioned in this document. Except as expressly permitted, neither this documentation nor any part of it may be reproduced, stored in a retrieval system, or transmitted in
any form or by any means, electronic, mechanical, printing, photocopying, recording or otherwise, without the prior permission of Infosys Limited and/ or any named intellectual property rights holders under this document.

Das könnte Ihnen auch gefallen