0% found this document useful (0 votes)
4 views12 pages

Workshop - Web App Back End Spring Boot 1

The document outlines a workshop agenda focused on web application back-end development using Spring Boot, covering topics such as intra-application communication, web services, microservices, and the advantages of using Spring Boot. It includes examples of JSON and XML data formats, as well as a comparison between them. The workshop aims to provide participants with practical knowledge on creating and testing services with Spring Boot.

Uploaded by

Kandalam Bharani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views12 pages

Workshop - Web App Back End Spring Boot 1

The document outlines a workshop agenda focused on web application back-end development using Spring Boot, covering topics such as intra-application communication, web services, microservices, and the advantages of using Spring Boot. It includes examples of JSON and XML data formats, as well as a comparison between them. The workshop aims to provide participants with practical knowledge on creating and testing services with Spring Boot.

Uploaded by

Kandalam Bharani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Workshop - Web App Back end (Spring Boot)

-2-

Agenda
• Intra Application Communication
• What is Webservice
• What is communication Standards
• XML & JSON
• What is Microservice
• Introduction to Microservice
• Introduction to SpringBoot
• Creating a sample service using SpringBoot
• Testing the service
• Advantages of Microservice.
Intra Application Communication

Request
ABC Cart Payment Gateway
Java Beans

Java Beans
Response

JSP/Servlet JSP/Servlet
Application Application

Sample Scenario of Cart & Payment Gate Way


{
"card": "3499913356242929",

Intra Application Communication "name": "Akshay",


"payment_source": {
"card": {
"last_digits": "6889",
"brand": "VISA",
"type": "CREDIT",
},
"amount": 3200.00
}
}
Request
ABC Cart Payment Gateway
JSON Request

JSON Response
Response

{
JSP/Servlet JSP/Servlet
"id": "3M049991JF5624929", Application Application
"status": "COMPLETED",
"payment_source": "card"
}
Sample Scenario of Cart & Payment Gate Way
What is Webservice
XML Response
<employees>
<employee>
<name>Rajesh</name>
<email>[email protected]</email>
<salary>25000</salary>
</employee>
<employee>
<name>Rahul</name>
<email>[email protected]</email>
<salary>15000</salary>
</employee>
<employee>
<name>John</name>
<email>[email protected]</email>
<salary>10000</salary>
</employee>
</employees>
XML vs JSON
XML JSON

XSDs allow XML documents to be easily JSON doesn't have a schema.


validated, ensuring that they conform to the
specified format.
XML is document-oriented. JSON is data-oriented.

XML provides the capability to display data JSON doesn't provide display capabilities.
because it is a markup language.

XML doesn't support array. JSON supports array.

XML files are less human readable. JSON files are more human readable than XML.

Amazon Product Advertising API Facebook Graph API, Google Maps API, Twitter
API, AccuWeather API

Parsers : DOM, SAX, StAX Parsers : Jackson, GSON, Boon

XML is not always a well-defined object model. JSON maps directly to object models
Introduction to Microservice
Microservice is an architectural style that structures an application as a collection of
two or more services that are:
• Independently deployable
• Loosely coupled

Services are typically organized


around business capabilities.
Each service is often owned
by a single, small team.
Introduction to SpringBoot
Spring Boot (Spring Boot) is a tool that makes developing web applications
and microservices with Java Spring Framework faster and easier.

•Spring Boot Starters


•Embedded Servers
•Run Application as a jar file
•Increases Productivity and minimizes Development time
Configuring the Spring Boot Service
Testing the Service
Thank you

Copyright © 2022 Tata Consultancy Services Limited

You might also like