Event Delivery System

 Event delivery system is a project based on web book, which sends post request automatically to the required destination from the source along with particular slack and analytics, and with other API I am starting this project and eventually add complexity like scaling and planning to add eight types of production level problem solutions to this project, including system design

Mission 1 

Starting a spring application 

Start a spring application with spring initialiser, then open output route and go to the '/'

problem 1

You will notice 404 not found error that doesn't mean that your database contains data of that particular route.

reasoning 

It means that the spring boot doesn't even know how to handle that route so to handle that you need an handler and depending upon the type of request, you need to use, get mapping or post mapping so on

Mission 2 Routing 

It's like that you are teaching the spring boot to what to do when particular request comes

like example: what to do when you hit "/"

To do that, you have to map that

@Getmapping handle the get request by default, the browser sent always get request for particular route. When you search you have to write a method for that to run after you handle that particular route.

Mission 3 Handling Json and post request

Girl, the post request which is used to send the data through HTTP request usually is in Jason format, but Java manipulate the data using Java object of particular class so to handle that type of data the Java Jackson automatically converts Jason form of data to Java object by DTO, we have to create separate class for that DTO object and we have to set the local and global variables which exactly matches the post request sent from the front end.

problem 2

When you passed the wrong data, for example, when you pass the nail Data to the post request, for that particular route, it directly alter the database without validation

solution

We have to add validation for the DTO object to define proper entries and Notnull type of entries In order to avoid null entries in the DB


Comments

Popular posts from this blog

First website

Node js

Payment form