SlideShare a Scribd company logo
1 of 31
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

What's hot (20)

Ipc in linux
Ipc in linuxIpc in linux
Ipc in linux
 
Escalonamento de processos
Escalonamento de processosEscalonamento de processos
Escalonamento de processos
 
D-bus basics
D-bus basicsD-bus basics
D-bus basics
 
Introduction to Linux
Introduction to Linux Introduction to Linux
Introduction to Linux
 
PostgreSQL for Oracle Developers and DBA's
PostgreSQL for Oracle Developers and DBA'sPostgreSQL for Oracle Developers and DBA's
PostgreSQL for Oracle Developers and DBA's
 
SIPREC RTPEngine Media Forking
SIPREC RTPEngine Media ForkingSIPREC RTPEngine Media Forking
SIPREC RTPEngine Media Forking
 
Presentation linux on power
Presentation   linux on powerPresentation   linux on power
Presentation linux on power
 
DAIS19: On the Performance of ARM TrustZone
DAIS19: On the Performance of ARM TrustZoneDAIS19: On the Performance of ARM TrustZone
DAIS19: On the Performance of ARM TrustZone
 
Prometheus for Monitoring Metrics (Fermilab 2018)
Prometheus for Monitoring Metrics (Fermilab 2018)Prometheus for Monitoring Metrics (Fermilab 2018)
Prometheus for Monitoring Metrics (Fermilab 2018)
 
Spi drivers
Spi driversSpi drivers
Spi drivers
 
CloudStack Metering - Working with Usage Data #CCCNA14
CloudStack Metering - Working with Usage Data #CCCNA14CloudStack Metering - Working with Usage Data #CCCNA14
CloudStack Metering - Working with Usage Data #CCCNA14
 
Simple callcenter platform with PHP
Simple callcenter platform with PHPSimple callcenter platform with PHP
Simple callcenter platform with PHP
 
Flink Forward Berlin 2018: Lasse Nedergaard - "Our successful journey with Fl...
Flink Forward Berlin 2018: Lasse Nedergaard - "Our successful journey with Fl...Flink Forward Berlin 2018: Lasse Nedergaard - "Our successful journey with Fl...
Flink Forward Berlin 2018: Lasse Nedergaard - "Our successful journey with Fl...
 
Introduction to Optee (26 may 2016)
Introduction to Optee (26 may 2016)Introduction to Optee (26 may 2016)
Introduction to Optee (26 may 2016)
 
A crash course in CRUSH
A crash course in CRUSHA crash course in CRUSH
A crash course in CRUSH
 
Course 102: Lecture 1: Course Overview
Course 102: Lecture 1: Course Overview Course 102: Lecture 1: Course Overview
Course 102: Lecture 1: Course Overview
 
Ceph Block Devices: A Deep Dive
Ceph Block Devices:  A Deep DiveCeph Block Devices:  A Deep Dive
Ceph Block Devices: A Deep Dive
 
OpenZFS novel algorithms: snapshots, space allocation, RAID-Z - Matt Ahrens
OpenZFS novel algorithms: snapshots, space allocation, RAID-Z - Matt AhrensOpenZFS novel algorithms: snapshots, space allocation, RAID-Z - Matt Ahrens
OpenZFS novel algorithms: snapshots, space allocation, RAID-Z - Matt Ahrens
 
PowerShell-1
PowerShell-1PowerShell-1
PowerShell-1
 
Kernel Recipes 2019 - Faster IO through io_uring
Kernel Recipes 2019 - Faster IO through io_uringKernel Recipes 2019 - Faster IO through io_uring
Kernel Recipes 2019 - Faster IO through io_uring
 

Similar to AVRO to JSON Conversion

Intro to web services
Intro to web servicesIntro to web services
Intro to web services
Neil Ghosh
 
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
 
Sparkling Water 5 28-14
Sparkling Water 5 28-14Sparkling Water 5 28-14
Sparkling Water 5 28-14
Sri Ambati
 

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 (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

Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 

Recently uploaded (20)

SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
THE BEST IPTV in GERMANY for 2024: IPTVreel
THE BEST IPTV in  GERMANY for 2024: IPTVreelTHE BEST IPTV in  GERMANY for 2024: IPTVreel
THE BEST IPTV in GERMANY for 2024: IPTVreel
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 

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!