SlideShare a Scribd company logo
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
I1
Pn
P1P1
Pn
O1
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nginx
spec:
replicas: 3
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.7.9
ports:
- containerPort: 80
livenessProbe:
...
readinessProbe:
...
---
apiVersion: v1
kind: Service
metadata:
name: nginx
labels:
app: nginx
namespace: default
spec:
type: NodePort
ports:
- port: 80
selector:
app: nginx
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: nginx
labels:
app: nginx
namespace: default
spec:
rules:
- host: nginx.cloudkoffer
http:
paths:
- path: /
backend:
serviceName: nginx
servicePort: 80
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
33
P1 C1Q1 P1
C1
Q1
Cn
P1
C1Q1
CnQn
P1 C1
Q1
Q2
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
CDI
Extensions
Web
Fragments
Bean Validation
2.0
CDI 2.0
Managed Beans 1.0
JCA 1.7
JPA 2.2 JMS 2.0
JSP 2.3
EL 3.0
EJB 3.2 Batch 1.0
JSF 2.3
Interceptors
1.2
Mail 1.6
Common
Annotations 1.3
JTA 1.2
JAX-WS
1.4
JAX-RS
2.1
Concurrency
1.0
JSON-P
1.1
JSON-B 1.0
WebSocket
1.1
JAPSIC 1.1 JACC 1.5
Security
1.0
Servlet 4.0
JCache 1.0
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices
@MessageDriven(activationConfig = {
@ActivationConfigProperty(propertyName = "serverURIs", propertyValue = "tcp://eclipse-mosquitto:1883"),
@ActivationConfigProperty(propertyName = "cleanSession", propertyValue = "false"),
@ActivationConfigProperty(propertyName = "automaticReconnect", propertyValue = "true"),
@ActivationConfigProperty(propertyName = "filePersistence", propertyValue = "false"),
@ActivationConfigProperty(propertyName = "connectionTimeout", propertyValue = "30"),
@ActivationConfigProperty(propertyName = "maxInflight", propertyValue = "3"),
@ActivationConfigProperty(propertyName = "keepAliveInterval", propertyValue = "5"),
@ActivationConfigProperty(propertyName = "topicFilter", propertyValue = "de/qaware/oss/cloud/mqtt"),
@ActivationConfigProperty(propertyName = "qos", propertyValue = "1")
})
public class MqttSourceMDB implements MQTTListener {
@OnMQTTMessage
@TransactionAttribute(value = TransactionAttributeType.REQUIRED)
@Transactional(Transactional.TxType.REQUIRED)
public void onMQTTMessage(String topic, MqttMessage message) {
JsonReader reader = Json.createReader(new ByteArrayInputStream(message.getPayload()));
JsonObject jsonObject = reader.readObject();
// TODO do stuff with the JSON payload
}
}
JsonObject currentWeather = Json.createObjectBuilder()
.add("city", “London")
.add("weather", “Drizzle")
.build();
StringWriter payload = new StringWriter();
JsonWriter jsonWriter = Json.createWriter(payload);
jsonWriter.writeObject(currentWeather);
TextMessage msg = session.createTextMessage(payload.toString());
msg.setJMSType("CurrentWeather");
msg.setStringProperty("contentType",
"application/vnd.weather.v1+json");
@ActivationConfigProperty(propertyName = "messageSelector",
propertyValue = "(JMSType = 'CurrentWeather') AND
(contentType = 'application/vnd.weather.v1+json‘)“)
JsonReader reader = Json.createReader(new StringReader(body));
JsonObject jsonObject = reader.readObject();
Dataservices - Data Processing mit Microservices
Dataservices - Data Processing mit Microservices

More Related Content

PPTX
Composer
PPTX
Setup docker on existing application
PPTX
Smuggling TCP traffic through HTTP
PPTX
PHP Dependency Management with Composer
PDF
Docker for Developers - Part 1 by David Gageot
PDF
Apache Web Server Performance Objectives
PDF
青云虚拟机部署私有Docker Registry
PPTX
Java Day Kharkiv - Next-gen engineering with Docker and Kubernetes
Composer
Setup docker on existing application
Smuggling TCP traffic through HTTP
PHP Dependency Management with Composer
Docker for Developers - Part 1 by David Gageot
Apache Web Server Performance Objectives
青云虚拟机部署私有Docker Registry
Java Day Kharkiv - Next-gen engineering with Docker and Kubernetes

What's hot (20)

PDF
Web scale infrastructures with kubernetes and flannel
PDF
Automating linux network performance testing
PDF
Docker 1.12 networking deep dive
PPTX
Docker Networking Overview
PPTX
Docker for PHP Developers - Jetbrains
PPTX
Dockerizing Windows Server Applications by Ender Barillas and Taylor Brown
PDF
Dockercon 16 Wrap-up (Docker for Mac and Win, Docker 1.12, Swarm Mode, etc.)
PPT
Setting up the fabric v 0.6 in hyperledger
PPTX
Docker Networking Tip - Load balancing options
PDF
New Virtualization Technologies
PDF
macvlan and ipvlan
PPTX
Phalcon 2 - PHP Brazil Conference
PPTX
Docker Security workshop slides
PDF
LinuxKit Deep Dive
PDF
What should be PID 1 in a container ? by Ranjith Rajaram for #rootConf 2017
PDF
Deeper Dive in Docker Overlay Networks
PPTX
Continuous Delivery With Selenium Grid And Docker
PPTX
Deploying applications to Windows Server 2016 and Windows Containers
PPTX
Docker Networking : 0 to 60mph slides
PDF
Online Meetup: Why should container system / platform builders care about con...
Web scale infrastructures with kubernetes and flannel
Automating linux network performance testing
Docker 1.12 networking deep dive
Docker Networking Overview
Docker for PHP Developers - Jetbrains
Dockerizing Windows Server Applications by Ender Barillas and Taylor Brown
Dockercon 16 Wrap-up (Docker for Mac and Win, Docker 1.12, Swarm Mode, etc.)
Setting up the fabric v 0.6 in hyperledger
Docker Networking Tip - Load balancing options
New Virtualization Technologies
macvlan and ipvlan
Phalcon 2 - PHP Brazil Conference
Docker Security workshop slides
LinuxKit Deep Dive
What should be PID 1 in a container ? by Ranjith Rajaram for #rootConf 2017
Deeper Dive in Docker Overlay Networks
Continuous Delivery With Selenium Grid And Docker
Deploying applications to Windows Server 2016 and Windows Containers
Docker Networking : 0 to 60mph slides
Online Meetup: Why should container system / platform builders care about con...
Ad

Similar to Dataservices - Data Processing mit Microservices (20)

PDF
The Future of Kubernetes Connectivity
PDF
New Features of Kubernetes v1.2.0 beta
PDF
Gluster Containerized Storage for Cloud Applications
PDF
Gluster Contenarized Storage for Cloud Applications
PPTX
Getting Started with Azure Kubernetes Service
PDF
Kubernetes Operators - the next frontier in application automation - Ádám Sándor
PPTX
How to Install and Use Kubernetes by Weaveworks
PDF
How to install and use Kubernetes
PDF
Orchestrating Microservices with Kubernetes
PDF
KNATIVE - DEPLOY, AND MANAGE MODERN CONTAINER-BASED SERVERLESS WORKLOADS
PDF
Istio Playground
PDF
An Introduction to Project riff, a FaaS Built on Top of Knative - Eric Bottard
PDF
Breizhcamp - Application update in a Kubernetes World
PDF
Canadian CNCF: "Emissary-ingress 101: An introduction to the CNCF incubation-...
PDF
Lessons learned and challenges faced while running Kubernetes at Scale
PDF
OpenShift Meetup - Tokyo - Service Mesh and Serverless Overview
PPTX
The Challenges of Becoming Cloud Native
PDF
KubeCon EU 2016: Creating an Advanced Load Balancing Solution for Kubernetes ...
PDF
Load Balancing Applications on Kubernetes with NGINX
PDF
Kubernetes - from sketch to production
The Future of Kubernetes Connectivity
New Features of Kubernetes v1.2.0 beta
Gluster Containerized Storage for Cloud Applications
Gluster Contenarized Storage for Cloud Applications
Getting Started with Azure Kubernetes Service
Kubernetes Operators - the next frontier in application automation - Ádám Sándor
How to Install and Use Kubernetes by Weaveworks
How to install and use Kubernetes
Orchestrating Microservices with Kubernetes
KNATIVE - DEPLOY, AND MANAGE MODERN CONTAINER-BASED SERVERLESS WORKLOADS
Istio Playground
An Introduction to Project riff, a FaaS Built on Top of Knative - Eric Bottard
Breizhcamp - Application update in a Kubernetes World
Canadian CNCF: "Emissary-ingress 101: An introduction to the CNCF incubation-...
Lessons learned and challenges faced while running Kubernetes at Scale
OpenShift Meetup - Tokyo - Service Mesh and Serverless Overview
The Challenges of Becoming Cloud Native
KubeCon EU 2016: Creating an Advanced Load Balancing Solution for Kubernetes ...
Load Balancing Applications on Kubernetes with NGINX
Kubernetes - from sketch to production
Ad

More from QAware GmbH (20)

PDF
QAware_Mario-Leander_Reimer_Architecting and Building a K8s-based AI Platform...
PDF
Frontends mit Hilfe von KI entwickeln.pdf
PDF
Mit ChatGPT Dinosaurier besiegen - Möglichkeiten und Grenzen von LLM für die ...
PDF
50 Shades of K8s Autoscaling #JavaLand24.pdf
PDF
Make Agile Great - PM-Erfahrungen aus zwei virtuellen internationalen SAFe-Pr...
PPTX
Fully-managed Cloud-native Databases: The path to indefinite scale @ CNN Mainz
PDF
Down the Ivory Tower towards Agile Architecture
PDF
"Mixed" Scrum-Teams – Die richtige Mischung macht's!
PDF
Make Developers Fly: Principles for Platform Engineering
PDF
Der Tod der Testpyramide? – Frontend-Testing mit Playwright
PDF
Was kommt nach den SPAs
PDF
Cloud Migration mit KI: der Turbo
PDF
Migration von stark regulierten Anwendungen in die Cloud: Dem Teufel die See...
PDF
Aus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-Cluster
PDF
Endlich gute API Tests. Boldly Testing APIs Where No One Has Tested Before.
PDF
Kubernetes with Cilium in AWS - Experience Report!
PDF
50 Shades of K8s Autoscaling
PDF
Kontinuierliche Sicherheitstests für APIs mit Testkube und OWASP ZAP
PDF
Service Mesh Pain & Gain. Experiences from a client project.
PDF
50 Shades of K8s Autoscaling
QAware_Mario-Leander_Reimer_Architecting and Building a K8s-based AI Platform...
Frontends mit Hilfe von KI entwickeln.pdf
Mit ChatGPT Dinosaurier besiegen - Möglichkeiten und Grenzen von LLM für die ...
50 Shades of K8s Autoscaling #JavaLand24.pdf
Make Agile Great - PM-Erfahrungen aus zwei virtuellen internationalen SAFe-Pr...
Fully-managed Cloud-native Databases: The path to indefinite scale @ CNN Mainz
Down the Ivory Tower towards Agile Architecture
"Mixed" Scrum-Teams – Die richtige Mischung macht's!
Make Developers Fly: Principles for Platform Engineering
Der Tod der Testpyramide? – Frontend-Testing mit Playwright
Was kommt nach den SPAs
Cloud Migration mit KI: der Turbo
Migration von stark regulierten Anwendungen in die Cloud: Dem Teufel die See...
Aus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-Cluster
Endlich gute API Tests. Boldly Testing APIs Where No One Has Tested Before.
Kubernetes with Cilium in AWS - Experience Report!
50 Shades of K8s Autoscaling
Kontinuierliche Sicherheitstests für APIs mit Testkube und OWASP ZAP
Service Mesh Pain & Gain. Experiences from a client project.
50 Shades of K8s Autoscaling

Recently uploaded (20)

PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PPTX
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PPTX
SAP 2 completion done . PRESENTATION.pptx
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PPT
Quality review (1)_presentation of this 21
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PPT
Reliability_Chapter_ presentation 1221.5784
PPTX
Database Infoormation System (DBIS).pptx
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PPTX
Computer network topology notes for revision
PPTX
climate analysis of Dhaka ,Banglades.pptx
PPTX
Business Ppt On Nestle.pptx huunnnhhgfvu
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PPT
ISS -ESG Data flows What is ESG and HowHow
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...
STUDY DESIGN details- Lt Col Maksud (21).pptx
SAP 2 completion done . PRESENTATION.pptx
Data_Analytics_and_PowerBI_Presentation.pptx
Quality review (1)_presentation of this 21
Introduction-to-Cloud-ComputingFinal.pptx
IBA_Chapter_11_Slides_Final_Accessible.pptx
Reliability_Chapter_ presentation 1221.5784
Database Infoormation System (DBIS).pptx
oil_refinery_comprehensive_20250804084928 (1).pptx
Computer network topology notes for revision
climate analysis of Dhaka ,Banglades.pptx
Business Ppt On Nestle.pptx huunnnhhgfvu
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
Miokarditis (Inflamasi pada Otot Jantung)
ISS -ESG Data flows What is ESG and HowHow
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj

Dataservices - Data Processing mit Microservices

  • 24. apiVersion: extensions/v1beta1 kind: Deployment metadata: name: nginx spec: replicas: 3 strategy: type: RollingUpdate template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.7.9 ports: - containerPort: 80 livenessProbe: ... readinessProbe: ... --- apiVersion: v1 kind: Service metadata: name: nginx labels: app: nginx namespace: default spec: type: NodePort ports: - port: 80 selector: app: nginx --- apiVersion: extensions/v1beta1 kind: Ingress metadata: name: nginx labels: app: nginx namespace: default spec: rules: - host: nginx.cloudkoffer http: paths: - path: / backend: serviceName: nginx servicePort: 80
  • 42. CDI Extensions Web Fragments Bean Validation 2.0 CDI 2.0 Managed Beans 1.0 JCA 1.7 JPA 2.2 JMS 2.0 JSP 2.3 EL 3.0 EJB 3.2 Batch 1.0 JSF 2.3 Interceptors 1.2 Mail 1.6 Common Annotations 1.3 JTA 1.2 JAX-WS 1.4 JAX-RS 2.1 Concurrency 1.0 JSON-P 1.1 JSON-B 1.0 WebSocket 1.1 JAPSIC 1.1 JACC 1.5 Security 1.0 Servlet 4.0 JCache 1.0
  • 45. @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "serverURIs", propertyValue = "tcp://eclipse-mosquitto:1883"), @ActivationConfigProperty(propertyName = "cleanSession", propertyValue = "false"), @ActivationConfigProperty(propertyName = "automaticReconnect", propertyValue = "true"), @ActivationConfigProperty(propertyName = "filePersistence", propertyValue = "false"), @ActivationConfigProperty(propertyName = "connectionTimeout", propertyValue = "30"), @ActivationConfigProperty(propertyName = "maxInflight", propertyValue = "3"), @ActivationConfigProperty(propertyName = "keepAliveInterval", propertyValue = "5"), @ActivationConfigProperty(propertyName = "topicFilter", propertyValue = "de/qaware/oss/cloud/mqtt"), @ActivationConfigProperty(propertyName = "qos", propertyValue = "1") }) public class MqttSourceMDB implements MQTTListener { @OnMQTTMessage @TransactionAttribute(value = TransactionAttributeType.REQUIRED) @Transactional(Transactional.TxType.REQUIRED) public void onMQTTMessage(String topic, MqttMessage message) { JsonReader reader = Json.createReader(new ByteArrayInputStream(message.getPayload())); JsonObject jsonObject = reader.readObject(); // TODO do stuff with the JSON payload } }
  • 46. JsonObject currentWeather = Json.createObjectBuilder() .add("city", “London") .add("weather", “Drizzle") .build(); StringWriter payload = new StringWriter(); JsonWriter jsonWriter = Json.createWriter(payload); jsonWriter.writeObject(currentWeather); TextMessage msg = session.createTextMessage(payload.toString()); msg.setJMSType("CurrentWeather"); msg.setStringProperty("contentType", "application/vnd.weather.v1+json"); @ActivationConfigProperty(propertyName = "messageSelector", propertyValue = "(JMSType = 'CurrentWeather') AND (contentType = 'application/vnd.weather.v1+json‘)“) JsonReader reader = Json.createReader(new StringReader(body)); JsonObject jsonObject = reader.readObject();