Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Exposing Reactive Restful APIs ( all the GET / POST / PUT / DELETE )

Pragya Keshap answered on February 15, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • restful url to update status
  • angular api delete request
  • asp core api and react put and delete methods not working
  • Returning data reactively to an API controller
  • Reactive APIs

  • Exposing Reactive Restful APIs ( all the GET / POST / PUT / DELETE )

    0

     Below are the advantages we will get with reactive APIs.

    Asynchronous and Non-Blocking → Reactive programming gives the flexibility to write asynchronous and Non-Blocking applications.

    Event/Message Driven→ The system will generate events or messages for any activity. For example, the data coming from the database is treated as a stream of events.

    Support for backpressure → Gracefully we can handle the pressure from one system to on to the other system by applying back pressure to avoid denial of service.

    Predictable application response time → As the threads are asynchronous and non-blocking, the application response time is predictable under the load.

    Better utilization of system resources → As the threads are asynchronous and non-blocking, the threads will not be hogged for the I/O. With fewer threads, we could able to support more user requests.

    Scale based on the load

    Move away from thread per request → With the reactive APIs, we are moving away from thread per request model as the threads are asynchronous and non-blocking. Once the request is made, it creates an event with the server and the request thread will be released to handle other requests.

    https://dzone.com/articles/build-reactive-rest-apis-with-spring-webflux

    Popularity 1/10 Helpfulness 1/10 Language javascript
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 15 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.