SlideShare a Scribd company logo
1
Baltimore Meetup will start
shortly...meanwhile
@Attendees: Kindly introduce yourself in Chat
● Name
● Company
● Location
● Mule Experience
BALTIMORE MuleSoft
Meetup
AVRO to JSON/JSON to AVRO
Conversion using Confluent
Schema Registry – Use Case and
Demo
6th August 2022
Start
Recording...
● Introduction
● Overview on AVRO and JSON
● Convert AVRO to Json and Json
to AVRO through Mule - DEMO
● Introduction to Confluent
Schema Registry
● Convert AVRO to Json and Json
to AVRO using confluent
schema registry - DEMO
● Q&A
● Trivia
● Meetup: Feedback & Upcoming
Events
Agenda
3
Meet your Baltimore Meetup
Leaders
5
Today’s Meetup
Speaker
Shruthi R
Application Development Analyst at Accenture
● Mulesoft Certified Developer(Mule 3 & 4) with 3.5 years of experience
working in Mule 3 & Mule 4 Live Projects.
● Have good technical experience in designing & implementing various
integration solutions for Retail and Health Care Domains.
● Worked as a key resources for many projects integrating Salesforce CRM,
Workday, MDM etc.
6
● Both the speaker and host are organizing this meet up in individual capacity only. We are not
representing our companies here.
● This presentation is strictly for learning purpose only. Organizer/Presenter do not hold any
responsibility that same solution will work for your business requirements also.
● This presentation is not meant for any promotional activities.
● This meeting will be recorded and shared.
7
Safe Harbour
Statement
Overview on AVRO and JSON
9
● Avro is used to define the data schema/structure for a record's value.
● An AVRO schema is created using JSON format and can have single or multiple
fields.
{
"type": "record",
"namespace": "com.example",
"name": "FullName",
"fields": [
{ "name": "first", "type": "string" },
{ "name": "last", "type": "string" }
]
}
What is AVRO?
Type: For Avro schemas, type is
always record. This means that there will be
multiple fields defined.
Namespace: It is used to differentiate one
schema type from another
Name: This is the schema name which when
combined with the namespace, uniquely
identifies the schema
Field: A simple data type, such as an integer or
a string, or it can be complex data
9
Why AVRO?
● Embedding documentation in the schema reduces data interpretation
misunderstandings, allows other team members to know about your data
without asking you for clarification.
● It has a very compact format. The bulk of JSON, repeating every field name
with every single record, is what makes JSON inefficient for high-volume usage.
● It is very fast.
Advantages
● Helps producers or consumers of data streams know the right fields that are
needed in an event and what type each field is.
● Keeps data clean, and make everyone more agile
● They protect downstream data consumers from malformed data, as only valid
data will be permitted in the topic.
● Schemas also help solve one of the hardest problems in organization-wide data
flow modeling and handling change in data format
9
● JSON is basically a combination of key/value pair and arrays.
● The data types supported by JSON are string, number, object, array, boolean and
null.
{
"id" : 100,
"name" : "John",
"subject" : [ "Maths",
"address" : {
"city" : "faridabad",
What is JSON?
9
● To prevent data loss or corruption by maintaining the integrity of the data and
embedded structures.
● End Systems supports or requires data in the format
Why Data Conversion Required?
AVRO to JSON and JSON to AVRO
Conversion through Mule
9
● Each Binary message should be embedded with AVRO schema to process via mule.
● Is feasible when the payload received from external system is in embedded
format(Binary + AVRO schema).
JSON to AVRO Conversion
● Json payload is converted into binary data embedded with AVRO schema.
● Is feasible when the external system accepts the data in embedded format(Binary
+ AVRO schema).
AVRO to JSON Conversion
Conversion Via Mule - DEMO
Introduction to Confluent Schema Registry
9
Pre-Requisites:
1. Anypoint Studio Version 7.12.1
2. Mule Runtime Version 4.4.0
3. Confluent Cloud Account
● Anypoint Connector for Confluent Schema Registry provides a mechanism to store
and retrieve AVRO and JSON Schema.
Advantages of Confluent Schema Registry
● It reduces the size of the message because the entire schema does not need to be
embedded and sent or received from the external system/APIs
● Not all systems support embedded data.
Confluent Schema Registry Connector
9
Creating Confluent Cloud Account
Confluent Cloud is a resilient, scalable streaming data service based on Apache Kafka,
which is an event streaming platform used to collect, process, store, and integrate data.
Create a free account at https://www.confluent.io/get-started/
9
Creating Schema Registry
● Select the Region to create the schema registry.
● Click on Add Schema.
● Copy paste you AVRO Schema and add the schema name.
9
Confluent Schema Registry Connector
● Download the connector from Exchange.
9
● Required AVRO Schema to be registered in Confluent Cloud.
● During conversion corresponding Avro schema is retrieved using schema ID to
convert the binary data to JSON.
JSON to AVRO Conversion
● Retrieve the AVRO schema from confluent and replace with ID to convert JSON to
Binary.
AVRO to JSON Conversion
Conversion Via Confluent Schema
Registry – Use Case and DEMO
Q & A
9
● Medium Blog on Confluent Schema Registry in Mule 4:
https://medium.com/@shruthi_r/confluent-schema-registry-in-mule-4-
9e4b55f495e0
● Github link to code:
https://github.com/Shruthiii960/confluentSchemaRegistry
Resources
Trivia Round
31
1. Which is the other connector using which we
can connect to confluent cloud in mulesoft ?
(A) NetSuite
(B) Kafka
(C) AS2
2. What is the default streaming strategy used by
confluent cloud registry connector operations?
(A) Repeatable
(B) Non Repeatable
31
3. AVRO schemas describe the format of the
message and are defined using
(A) JSON
(B) XML
(C) JavaScript
31
Meetup
Feedback
● Share:
○ Tweet using the hashtag #MuleSoftMeetups #MuleMeetup
○ Invite your network to join: https://meetups.mulesoft.com/baltimore/
● Feedback:
○ Fill out the survey feedback and suggest topics for upcoming events
○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program
● Nominate Yourself as Meetup Speaker:
○ Amazing opportunity to public speaking, broadening skills and expanding
network
31
Knowledge Shared is Knowledge
Squared!
Meetup
Photo
Thank You !!!

More Related Content

What's hot

Alta Disponibilidad y Recuperación ante de desastres en SQL Server 2012, 2014...
Alta Disponibilidad y Recuperación ante de desastres en SQL Server 2012, 2014...Alta Disponibilidad y Recuperación ante de desastres en SQL Server 2012, 2014...
Alta Disponibilidad y Recuperación ante de desastres en SQL Server 2012, 2014...
EAE
 
Best Practices for Managing MongoDB with Ops Manager
Best Practices for Managing MongoDB with Ops ManagerBest Practices for Managing MongoDB with Ops Manager
Best Practices for Managing MongoDB with Ops Manager
MongoDB
 
64518313 manual-basico-as400
64518313 manual-basico-as40064518313 manual-basico-as400
64518313 manual-basico-as400
Waldir Nuñez Francia
 
OOW15 - case study: oracle application management suite for oracle e-business...
OOW15 - case study: oracle application management suite for oracle e-business...OOW15 - case study: oracle application management suite for oracle e-business...
OOW15 - case study: oracle application management suite for oracle e-business...
vasuballa
 
UTS CONVERSION
UTS CONVERSIONUTS CONVERSION
UTS CONVERSION
Udayakumar Suseendran
 
PostgreSQL HA
PostgreSQL   HAPostgreSQL   HA
PostgreSQL HA
haroonm
 
InnoDB Performance Optimisation
InnoDB Performance OptimisationInnoDB Performance Optimisation
InnoDB Performance Optimisation
Mydbops
 
Oracle to Postgres Schema Migration Hustle
Oracle to Postgres Schema Migration HustleOracle to Postgres Schema Migration Hustle
Oracle to Postgres Schema Migration Hustle
EDB
 
Pruebas de Servicios Web, ¿Codificar o No Codificar?
Pruebas de Servicios Web, ¿Codificar o No Codificar?Pruebas de Servicios Web, ¿Codificar o No Codificar?
Pruebas de Servicios Web, ¿Codificar o No Codificar?
Software Guru
 
MuleSoft Integration with AWS Cognito Client Credentials and Mule JWT Validat...
MuleSoft Integration with AWS Cognito Client Credentials and Mule JWT Validat...MuleSoft Integration with AWS Cognito Client Credentials and Mule JWT Validat...
MuleSoft Integration with AWS Cognito Client Credentials and Mule JWT Validat...
Manish Kumar Yadav
 
Redo log
Redo logRedo log
Redo log
PaweOlchawa1
 
Manual de formato de computadora ..pdf
Manual de formato de computadora ..pdfManual de formato de computadora ..pdf
Manual de formato de computadora ..pdf
MAURICIOJOSEVELASQUE
 
Enterprise Kubernetes from Canonical
Enterprise Kubernetes from CanonicalEnterprise Kubernetes from Canonical
Enterprise Kubernetes from Canonical
Dustin Kirkland
 
Red Hat Enterprise Linux 8 Workshop
Red Hat Enterprise Linux 8 WorkshopRed Hat Enterprise Linux 8 Workshop
Red Hat Enterprise Linux 8 Workshop
Ahmed El-Rayess
 
How To Install and Configure SUDO on RHEL 7
How To Install and Configure SUDO on RHEL 7How To Install and Configure SUDO on RHEL 7
How To Install and Configure SUDO on RHEL 7
VCP Muthukrishna
 
Oracle Office Hours - Exposing REST services with APEX and ORDS
Oracle Office Hours - Exposing REST services with APEX and ORDSOracle Office Hours - Exposing REST services with APEX and ORDS
Oracle Office Hours - Exposing REST services with APEX and ORDS
Doug Gault
 
Revisiting CephFS MDS and mClock QoS Scheduler
Revisiting CephFS MDS and mClock QoS SchedulerRevisiting CephFS MDS and mClock QoS Scheduler
Revisiting CephFS MDS and mClock QoS Scheduler
Yongseok Oh
 
ORDS - Oracle REST Data Services
ORDS - Oracle REST Data ServicesORDS - Oracle REST Data Services
ORDS - Oracle REST Data Services
Justin Michael Raj
 
Ansible
AnsibleAnsible
Ansible
Knoldus Inc.
 
Manual de Instalacion y Configuracion de WSUS
Manual de Instalacion y Configuracion de WSUSManual de Instalacion y Configuracion de WSUS
Manual de Instalacion y Configuracion de WSUS
K-milo Rivera
 

What's hot (20)

Alta Disponibilidad y Recuperación ante de desastres en SQL Server 2012, 2014...
Alta Disponibilidad y Recuperación ante de desastres en SQL Server 2012, 2014...Alta Disponibilidad y Recuperación ante de desastres en SQL Server 2012, 2014...
Alta Disponibilidad y Recuperación ante de desastres en SQL Server 2012, 2014...
 
Best Practices for Managing MongoDB with Ops Manager
Best Practices for Managing MongoDB with Ops ManagerBest Practices for Managing MongoDB with Ops Manager
Best Practices for Managing MongoDB with Ops Manager
 
64518313 manual-basico-as400
64518313 manual-basico-as40064518313 manual-basico-as400
64518313 manual-basico-as400
 
OOW15 - case study: oracle application management suite for oracle e-business...
OOW15 - case study: oracle application management suite for oracle e-business...OOW15 - case study: oracle application management suite for oracle e-business...
OOW15 - case study: oracle application management suite for oracle e-business...
 
UTS CONVERSION
UTS CONVERSIONUTS CONVERSION
UTS CONVERSION
 
PostgreSQL HA
PostgreSQL   HAPostgreSQL   HA
PostgreSQL HA
 
InnoDB Performance Optimisation
InnoDB Performance OptimisationInnoDB Performance Optimisation
InnoDB Performance Optimisation
 
Oracle to Postgres Schema Migration Hustle
Oracle to Postgres Schema Migration HustleOracle to Postgres Schema Migration Hustle
Oracle to Postgres Schema Migration Hustle
 
Pruebas de Servicios Web, ¿Codificar o No Codificar?
Pruebas de Servicios Web, ¿Codificar o No Codificar?Pruebas de Servicios Web, ¿Codificar o No Codificar?
Pruebas de Servicios Web, ¿Codificar o No Codificar?
 
MuleSoft Integration with AWS Cognito Client Credentials and Mule JWT Validat...
MuleSoft Integration with AWS Cognito Client Credentials and Mule JWT Validat...MuleSoft Integration with AWS Cognito Client Credentials and Mule JWT Validat...
MuleSoft Integration with AWS Cognito Client Credentials and Mule JWT Validat...
 
Redo log
Redo logRedo log
Redo log
 
Manual de formato de computadora ..pdf
Manual de formato de computadora ..pdfManual de formato de computadora ..pdf
Manual de formato de computadora ..pdf
 
Enterprise Kubernetes from Canonical
Enterprise Kubernetes from CanonicalEnterprise Kubernetes from Canonical
Enterprise Kubernetes from Canonical
 
Red Hat Enterprise Linux 8 Workshop
Red Hat Enterprise Linux 8 WorkshopRed Hat Enterprise Linux 8 Workshop
Red Hat Enterprise Linux 8 Workshop
 
How To Install and Configure SUDO on RHEL 7
How To Install and Configure SUDO on RHEL 7How To Install and Configure SUDO on RHEL 7
How To Install and Configure SUDO on RHEL 7
 
Oracle Office Hours - Exposing REST services with APEX and ORDS
Oracle Office Hours - Exposing REST services with APEX and ORDSOracle Office Hours - Exposing REST services with APEX and ORDS
Oracle Office Hours - Exposing REST services with APEX and ORDS
 
Revisiting CephFS MDS and mClock QoS Scheduler
Revisiting CephFS MDS and mClock QoS SchedulerRevisiting CephFS MDS and mClock QoS Scheduler
Revisiting CephFS MDS and mClock QoS Scheduler
 
ORDS - Oracle REST Data Services
ORDS - Oracle REST Data ServicesORDS - Oracle REST Data Services
ORDS - Oracle REST Data Services
 
Ansible
AnsibleAnsible
Ansible
 
Manual de Instalacion y Configuracion de WSUS
Manual de Instalacion y Configuracion de WSUSManual de Instalacion y Configuracion de WSUS
Manual de Instalacion y Configuracion de WSUS
 

Similar to AVRO to JSON Conversion

Streaming in Mule
Streaming in MuleStreaming in Mule
Streaming in Mule
Pankaj Goyal
 
MLflow Model Serving
MLflow Model ServingMLflow Model Serving
MLflow Model Serving
Databricks
 
MLflow Model Serving - DAIS 2021
MLflow Model Serving - DAIS 2021MLflow Model Serving - DAIS 2021
MLflow Model Serving - DAIS 2021
amesar0
 
Intro to web services
Intro to web servicesIntro to web services
Intro to web services
Neil Ghosh
 
Wikipedia’s Event Data Platform, Or: JSON Is Okay Too With Andrew Otto | Curr...
Wikipedia’s Event Data Platform, Or: JSON Is Okay Too With Andrew Otto | Curr...Wikipedia’s Event Data Platform, Or: JSON Is Okay Too With Andrew Otto | Curr...
Wikipedia’s Event Data Platform, Or: JSON Is Okay Too With Andrew Otto | Curr...
HostedbyConfluent
 
Secrets of Custom API Policies on the Oracle API Platform
Secrets of Custom API Policies on the Oracle API PlatformSecrets of Custom API Policies on the Oracle API Platform
Secrets of Custom API Policies on the Oracle API Platform
Phil Wilkins
 
Big Data, Data Lake, Fast Data - Dataserialiation-Formats
Big Data, Data Lake, Fast Data - Dataserialiation-FormatsBig Data, Data Lake, Fast Data - Dataserialiation-Formats
Big Data, Data Lake, Fast Data - Dataserialiation-Formats
Guido Schmutz
 
Provisioning infrastructure to AWS using Terraform – Exove
Provisioning infrastructure to AWS using Terraform – ExoveProvisioning infrastructure to AWS using Terraform – Exove
Provisioning infrastructure to AWS using Terraform – Exove
Exove
 
Introduction of Apache Camel
Introduction of Apache CamelIntroduction of Apache Camel
Introduction of Apache Camel
Knoldus Inc.
 
202107 - Orion introduction - COSCUP
202107 - Orion introduction - COSCUP202107 - Orion introduction - COSCUP
202107 - Orion introduction - COSCUP
Ronald Hsu
 
RESTful Services and Distributed OSGi - 04/2009
RESTful Services and Distributed OSGi - 04/2009RESTful Services and Distributed OSGi - 04/2009
RESTful Services and Distributed OSGi - 04/2009
Roland Tritsch
 
Xml+messaging+with+soap
Xml+messaging+with+soapXml+messaging+with+soap
Xml+messaging+with+soap
Aravindharamanan S
 
J&Js adventures with agency best practice & the hybrid MVC framework - Umbrac...
J&Js adventures with agency best practice & the hybrid MVC framework - Umbrac...J&Js adventures with agency best practice & the hybrid MVC framework - Umbrac...
J&Js adventures with agency best practice & the hybrid MVC framework - Umbrac...
Jeavon Leopold
 
resume
resumeresume
Apache Avro in LivePerson [Hebrew]
Apache Avro in LivePerson [Hebrew]Apache Avro in LivePerson [Hebrew]
Apache Avro in LivePerson [Hebrew]
LivePerson
 
Reigning in Protobuf with David Navalho and Graham Stirling | Kafka Summit Lo...
Reigning in Protobuf with David Navalho and Graham Stirling | Kafka Summit Lo...Reigning in Protobuf with David Navalho and Graham Stirling | Kafka Summit Lo...
Reigning in Protobuf with David Navalho and Graham Stirling | Kafka Summit Lo...
HostedbyConfluent
 
Sparkling Water 5 28-14
Sparkling Water 5 28-14Sparkling Water 5 28-14
Sparkling Water 5 28-14
Sri Ambati
 
UKOUG Tech15 - Going Full Circle - Building a native JSON Database API
UKOUG Tech15 - Going Full Circle - Building a native JSON Database APIUKOUG Tech15 - Going Full Circle - Building a native JSON Database API
UKOUG Tech15 - Going Full Circle - Building a native JSON Database API
Marco Gralike
 
web programming
web programmingweb programming
web programming
shreeuva
 
H2O 3 REST API Overview
H2O 3 REST API OverviewH2O 3 REST API Overview
H2O 3 REST API Overview
Raymond Peck
 

Similar to AVRO to JSON Conversion (20)

Streaming in Mule
Streaming in MuleStreaming in Mule
Streaming in Mule
 
MLflow Model Serving
MLflow Model ServingMLflow Model Serving
MLflow Model Serving
 
MLflow Model Serving - DAIS 2021
MLflow Model Serving - DAIS 2021MLflow Model Serving - DAIS 2021
MLflow Model Serving - DAIS 2021
 
Intro to web services
Intro to web servicesIntro to web services
Intro to web services
 
Wikipedia’s Event Data Platform, Or: JSON Is Okay Too With Andrew Otto | Curr...
Wikipedia’s Event Data Platform, Or: JSON Is Okay Too With Andrew Otto | Curr...Wikipedia’s Event Data Platform, Or: JSON Is Okay Too With Andrew Otto | Curr...
Wikipedia’s Event Data Platform, Or: JSON Is Okay Too With Andrew Otto | Curr...
 
Secrets of Custom API Policies on the Oracle API Platform
Secrets of Custom API Policies on the Oracle API PlatformSecrets of Custom API Policies on the Oracle API Platform
Secrets of Custom API Policies on the Oracle API Platform
 
Big Data, Data Lake, Fast Data - Dataserialiation-Formats
Big Data, Data Lake, Fast Data - Dataserialiation-FormatsBig Data, Data Lake, Fast Data - Dataserialiation-Formats
Big Data, Data Lake, Fast Data - Dataserialiation-Formats
 
Provisioning infrastructure to AWS using Terraform – Exove
Provisioning infrastructure to AWS using Terraform – ExoveProvisioning infrastructure to AWS using Terraform – Exove
Provisioning infrastructure to AWS using Terraform – Exove
 
Introduction of Apache Camel
Introduction of Apache CamelIntroduction of Apache Camel
Introduction of Apache Camel
 
202107 - Orion introduction - COSCUP
202107 - Orion introduction - COSCUP202107 - Orion introduction - COSCUP
202107 - Orion introduction - COSCUP
 
RESTful Services and Distributed OSGi - 04/2009
RESTful Services and Distributed OSGi - 04/2009RESTful Services and Distributed OSGi - 04/2009
RESTful Services and Distributed OSGi - 04/2009
 
Xml+messaging+with+soap
Xml+messaging+with+soapXml+messaging+with+soap
Xml+messaging+with+soap
 
J&Js adventures with agency best practice & the hybrid MVC framework - Umbrac...
J&Js adventures with agency best practice & the hybrid MVC framework - Umbrac...J&Js adventures with agency best practice & the hybrid MVC framework - Umbrac...
J&Js adventures with agency best practice & the hybrid MVC framework - Umbrac...
 
resume
resumeresume
resume
 
Apache Avro in LivePerson [Hebrew]
Apache Avro in LivePerson [Hebrew]Apache Avro in LivePerson [Hebrew]
Apache Avro in LivePerson [Hebrew]
 
Reigning in Protobuf with David Navalho and Graham Stirling | Kafka Summit Lo...
Reigning in Protobuf with David Navalho and Graham Stirling | Kafka Summit Lo...Reigning in Protobuf with David Navalho and Graham Stirling | Kafka Summit Lo...
Reigning in Protobuf with David Navalho and Graham Stirling | Kafka Summit Lo...
 
Sparkling Water 5 28-14
Sparkling Water 5 28-14Sparkling Water 5 28-14
Sparkling Water 5 28-14
 
UKOUG Tech15 - Going Full Circle - Building a native JSON Database API
UKOUG Tech15 - Going Full Circle - Building a native JSON Database APIUKOUG Tech15 - Going Full Circle - Building a native JSON Database API
UKOUG Tech15 - Going Full Circle - Building a native JSON Database API
 
web programming
web programmingweb programming
web programming
 
H2O 3 REST API Overview
H2O 3 REST API OverviewH2O 3 REST API Overview
H2O 3 REST API Overview
 

More from ManjuKumara GH

Mulesoft Meetup Cryptography Module
Mulesoft Meetup Cryptography ModuleMulesoft Meetup Cryptography Module
Mulesoft Meetup Cryptography Module
ManjuKumara GH
 
JSON Logger Baltimore Meetup
JSON Logger Baltimore MeetupJSON Logger Baltimore Meetup
JSON Logger Baltimore Meetup
ManjuKumara GH
 
Baltimore MuleSoft Meetup #8
Baltimore MuleSoft Meetup #8Baltimore MuleSoft Meetup #8
Baltimore MuleSoft Meetup #8
ManjuKumara GH
 
Baltimore july2021 final
Baltimore july2021 finalBaltimore july2021 final
Baltimore july2021 final
ManjuKumara GH
 
How to Secure Mule API's With a Demo
How to Secure Mule API's With a DemoHow to Secure Mule API's With a Demo
How to Secure Mule API's With a Demo
ManjuKumara GH
 
Baltimore sep2019 mule_softsfdc
Baltimore sep2019 mule_softsfdcBaltimore sep2019 mule_softsfdc
Baltimore sep2019 mule_softsfdc
ManjuKumara GH
 
Data weave 2.0 advanced (recursion, pattern matching)
Data weave 2.0   advanced (recursion, pattern matching)Data weave 2.0   advanced (recursion, pattern matching)
Data weave 2.0 advanced (recursion, pattern matching)
ManjuKumara GH
 
Data weave 2.0 language fundamentals
Data weave 2.0 language fundamentalsData weave 2.0 language fundamentals
Data weave 2.0 language fundamentals
ManjuKumara GH
 
Mapfilterreducepresentation
MapfilterreducepresentationMapfilterreducepresentation
Mapfilterreducepresentation
ManjuKumara GH
 
Baltimore nov2018 meetup
Baltimore nov2018 meetupBaltimore nov2018 meetup
Baltimore nov2018 meetup
ManjuKumara GH
 
Baltimore jan2019 mule4
Baltimore jan2019 mule4Baltimore jan2019 mule4
Baltimore jan2019 mule4
ManjuKumara GH
 

More from ManjuKumara GH (11)

Mulesoft Meetup Cryptography Module
Mulesoft Meetup Cryptography ModuleMulesoft Meetup Cryptography Module
Mulesoft Meetup Cryptography Module
 
JSON Logger Baltimore Meetup
JSON Logger Baltimore MeetupJSON Logger Baltimore Meetup
JSON Logger Baltimore Meetup
 
Baltimore MuleSoft Meetup #8
Baltimore MuleSoft Meetup #8Baltimore MuleSoft Meetup #8
Baltimore MuleSoft Meetup #8
 
Baltimore july2021 final
Baltimore july2021 finalBaltimore july2021 final
Baltimore july2021 final
 
How to Secure Mule API's With a Demo
How to Secure Mule API's With a DemoHow to Secure Mule API's With a Demo
How to Secure Mule API's With a Demo
 
Baltimore sep2019 mule_softsfdc
Baltimore sep2019 mule_softsfdcBaltimore sep2019 mule_softsfdc
Baltimore sep2019 mule_softsfdc
 
Data weave 2.0 advanced (recursion, pattern matching)
Data weave 2.0   advanced (recursion, pattern matching)Data weave 2.0   advanced (recursion, pattern matching)
Data weave 2.0 advanced (recursion, pattern matching)
 
Data weave 2.0 language fundamentals
Data weave 2.0 language fundamentalsData weave 2.0 language fundamentals
Data weave 2.0 language fundamentals
 
Mapfilterreducepresentation
MapfilterreducepresentationMapfilterreducepresentation
Mapfilterreducepresentation
 
Baltimore nov2018 meetup
Baltimore nov2018 meetupBaltimore nov2018 meetup
Baltimore nov2018 meetup
 
Baltimore jan2019 mule4
Baltimore jan2019 mule4Baltimore jan2019 mule4
Baltimore jan2019 mule4
 

Recently uploaded

Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
TIPNGVN2
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 

Recently uploaded (20)

Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 

AVRO to JSON Conversion

  • 1. 1 Baltimore Meetup will start shortly...meanwhile @Attendees: Kindly introduce yourself in Chat ● Name ● Company ● Location ● Mule Experience
  • 2. BALTIMORE MuleSoft Meetup AVRO to JSON/JSON to AVRO Conversion using Confluent Schema Registry – Use Case and Demo 6th August 2022 Start Recording...
  • 3. ● Introduction ● Overview on AVRO and JSON ● Convert AVRO to Json and Json to AVRO through Mule - DEMO ● Introduction to Confluent Schema Registry ● Convert AVRO to Json and Json to AVRO using confluent schema registry - DEMO ● Q&A ● Trivia ● Meetup: Feedback & Upcoming Events Agenda 3
  • 4. Meet your Baltimore Meetup Leaders 5
  • 5. Today’s Meetup Speaker Shruthi R Application Development Analyst at Accenture ● Mulesoft Certified Developer(Mule 3 & 4) with 3.5 years of experience working in Mule 3 & Mule 4 Live Projects. ● Have good technical experience in designing & implementing various integration solutions for Retail and Health Care Domains. ● Worked as a key resources for many projects integrating Salesforce CRM, Workday, MDM etc. 6
  • 6. ● Both the speaker and host are organizing this meet up in individual capacity only. We are not representing our companies here. ● This presentation is strictly for learning purpose only. Organizer/Presenter do not hold any responsibility that same solution will work for your business requirements also. ● This presentation is not meant for any promotional activities. ● This meeting will be recorded and shared. 7 Safe Harbour Statement
  • 7. Overview on AVRO and JSON
  • 8. 9 ● Avro is used to define the data schema/structure for a record's value. ● An AVRO schema is created using JSON format and can have single or multiple fields. { "type": "record", "namespace": "com.example", "name": "FullName", "fields": [ { "name": "first", "type": "string" }, { "name": "last", "type": "string" } ] } What is AVRO? Type: For Avro schemas, type is always record. This means that there will be multiple fields defined. Namespace: It is used to differentiate one schema type from another Name: This is the schema name which when combined with the namespace, uniquely identifies the schema Field: A simple data type, such as an integer or a string, or it can be complex data
  • 9. 9 Why AVRO? ● Embedding documentation in the schema reduces data interpretation misunderstandings, allows other team members to know about your data without asking you for clarification. ● It has a very compact format. The bulk of JSON, repeating every field name with every single record, is what makes JSON inefficient for high-volume usage. ● It is very fast. Advantages ● Helps producers or consumers of data streams know the right fields that are needed in an event and what type each field is. ● Keeps data clean, and make everyone more agile ● They protect downstream data consumers from malformed data, as only valid data will be permitted in the topic. ● Schemas also help solve one of the hardest problems in organization-wide data flow modeling and handling change in data format
  • 10. 9 ● JSON is basically a combination of key/value pair and arrays. ● The data types supported by JSON are string, number, object, array, boolean and null. { "id" : 100, "name" : "John", "subject" : [ "Maths", "address" : { "city" : "faridabad", What is JSON?
  • 11. 9 ● To prevent data loss or corruption by maintaining the integrity of the data and embedded structures. ● End Systems supports or requires data in the format Why Data Conversion Required?
  • 12. AVRO to JSON and JSON to AVRO Conversion through Mule
  • 13. 9 ● Each Binary message should be embedded with AVRO schema to process via mule. ● Is feasible when the payload received from external system is in embedded format(Binary + AVRO schema). JSON to AVRO Conversion ● Json payload is converted into binary data embedded with AVRO schema. ● Is feasible when the external system accepts the data in embedded format(Binary + AVRO schema). AVRO to JSON Conversion
  • 15. Introduction to Confluent Schema Registry
  • 16. 9 Pre-Requisites: 1. Anypoint Studio Version 7.12.1 2. Mule Runtime Version 4.4.0 3. Confluent Cloud Account ● Anypoint Connector for Confluent Schema Registry provides a mechanism to store and retrieve AVRO and JSON Schema. Advantages of Confluent Schema Registry ● It reduces the size of the message because the entire schema does not need to be embedded and sent or received from the external system/APIs ● Not all systems support embedded data. Confluent Schema Registry Connector
  • 17. 9 Creating Confluent Cloud Account Confluent Cloud is a resilient, scalable streaming data service based on Apache Kafka, which is an event streaming platform used to collect, process, store, and integrate data. Create a free account at https://www.confluent.io/get-started/
  • 18. 9 Creating Schema Registry ● Select the Region to create the schema registry. ● Click on Add Schema. ● Copy paste you AVRO Schema and add the schema name.
  • 19. 9 Confluent Schema Registry Connector ● Download the connector from Exchange.
  • 20. 9 ● Required AVRO Schema to be registered in Confluent Cloud. ● During conversion corresponding Avro schema is retrieved using schema ID to convert the binary data to JSON. JSON to AVRO Conversion ● Retrieve the AVRO schema from confluent and replace with ID to convert JSON to Binary. AVRO to JSON Conversion
  • 21. Conversion Via Confluent Schema Registry – Use Case and DEMO
  • 22. Q & A
  • 23. 9 ● Medium Blog on Confluent Schema Registry in Mule 4: https://medium.com/@shruthi_r/confluent-schema-registry-in-mule-4- 9e4b55f495e0 ● Github link to code: https://github.com/Shruthiii960/confluentSchemaRegistry Resources
  • 25. 31 1. Which is the other connector using which we can connect to confluent cloud in mulesoft ? (A) NetSuite (B) Kafka (C) AS2
  • 26. 2. What is the default streaming strategy used by confluent cloud registry connector operations? (A) Repeatable (B) Non Repeatable 31
  • 27. 3. AVRO schemas describe the format of the message and are defined using (A) JSON (B) XML (C) JavaScript 31
  • 29. ● Share: ○ Tweet using the hashtag #MuleSoftMeetups #MuleMeetup ○ Invite your network to join: https://meetups.mulesoft.com/baltimore/ ● Feedback: ○ Fill out the survey feedback and suggest topics for upcoming events ○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program ● Nominate Yourself as Meetup Speaker: ○ Amazing opportunity to public speaking, broadening skills and expanding network 31 Knowledge Shared is Knowledge Squared!