Introduction
Description
This backend service functions as an API provider to manage articles displayed in mobile applications. Built using Spring Boot technology, the service utilizes several technologies and databases to offer efficient and responsive article services.
Technologies and Dependencies
Spring Boot: A Java framework used to develop microcontroller-based applications. In this context, it provides the article API.
- Redis
An in-memory NoSQL database that serves as a cache for article data, accelerating access and reducing load on the main database.
- Elasticsearch
A search and analytics engine used for article indexing and searching, ensuring efficient article searches.
- MySQL WordPress
A MySQL database utilized by the WordPress platform to store articles. It serves as the primary source of articles for the backend service.
- PostgreSQL
A relational database used to store information related to article likes and shares.
Architecture
The backend service follows the following architecture:
The Spring Boot application acts as a connector between mobile application requests and various databases.
Redis is employed as a caching mechanism for frequently accessed articles, speeding up data access and reducing the load on the main database.
Elasticsearch handles article indexing and searching, ensuring efficient and accurate article searches.
MySQL master is used for write operations, such as adding and updating articles.
MySQL slave is used for read operations, such as retrieving lists of articles, effectively separating the read load from the main database.
PostgreSQL is used to store information about article likes and shares, providing data recording and analysis capabilities.
API doc : swagger article service