Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/l33t-c0d3r-66/stocks-customer-service
Customer Service for Stock Aggregator Service to provide Customer Portfolio
https://github.com/l33t-c0d3r-66/stocks-customer-service
h2-database r2dbc reactive-programming springboot springwebflux
Last synced: 16 days ago
JSON representation
Customer Service for Stock Aggregator Service to provide Customer Portfolio
- Host: GitHub
- URL: https://github.com/l33t-c0d3r-66/stocks-customer-service
- Owner: l33t-c0d3r-66
- Created: 2024-08-25T07:34:38.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-27T05:23:51.000Z (4 months ago)
- Last Synced: 2024-10-31T03:24:57.872Z (2 months ago)
- Topics: h2-database, r2dbc, reactive-programming, springboot, springwebflux
- Language: Java
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Introduction
The Customer Service is a key component of the larger Spring WebFlux project. It is responsible for managing customer portfolio information, including customer details, account balance, and the stocks owned by the customer. This service is built using Spring WebFlux to take advantage of reactive programming for handling a high volume of concurrent requests efficiently.## What is Reactive Programming?
Reactive Programming is a paradigm that deals with asynchronous data streams and the propagation of changes. It allows applications to be highly responsive, scalable, and resilient. Reactive systems handle backpressure, which is crucial for maintaining performance under load.## What is Spring Boot?
Spring Boot is a framework that simplifies the development of Spring-based applications by providing a set of conventions and tools. It allows developers to create stand-alone, production-grade Spring applications with minimal configuration.## What is Spring WebFlux?
Spring WebFlux is a reactive web framework introduced in Spring 5. It is fully non-blocking and supports Reactive Streams backpressure. WebFlux is designed to handle large volumes of requests asynchronously, making it an ideal choice for modern web applications that require high performance and scalability.## Advantages of Spring WebFlux
Non-Blocking I/O: Handles a large number of concurrent requests without blocking the threads.
Backpressure Handling: Supports Reactive Streams, ensuring that producers and consumers operate efficiently without overwhelming each other.
Scalability: Perfect for applications requiring high throughput with minimal resource consumption.## Communication with Aggregator Service
The Aggregator Service interacts with the Customer Service to retrieve customer portfolio information, including customer details, account balances, and the stocks they own. The communication is asynchronous and reactive, allowing the system to scale efficiently even under heavy load.