Artikel Service
HomeArtikel Service
Api Reference
  • Artikel Controller
  • File Controller
  • Migration Controller
  • Milestone Controller
  • Q&A Controller
Changelog Release
HomeArtikel Service
Api Reference
  • Artikel Controller
  • File Controller
  • Migration Controller
  • Milestone Controller
  • Q&A Controller
Changelog Release
    • Introduction
    • Changelog Release
    • Local Development
    • Artikel Docs
      • Artikel Controller Docs
      • File Controller Docs
    • article-controller
      • getArticleDiscovery
        GET
      • get user's list of viewed / liked articles
        GET
      • getTaxonomies
        GET
      • get list of featured articles by mode
        GET
      • getListSubCategory
        GET
      • get list of curated article by week
        GET
      • bulk index all published article to elastic search
        GET
      • delete all indexed article in elastic search
        DELETE
      • like / unlike an article
        POST
      • get article by slug and increase read counter
        GET
      • readDetailArticleV2
        GET
      • readDetailArticle
        GET
      • getWeeklyRecomendedArticle
        GET
      • get list of articles related to specific article by slug
        GET
      • get list of articles related to specific article by id
        GET
      • search (return list of articles related to) in all user's liked articles by term
        GET
      • search (return list of articles related to) in all articles by term
        GET
      • get url for sharing an article by id
        GET
      • get list of all article slug
        GET
      • getArticleOverviewSubCategory
        GET
      • getWeeklyTipsArticle
        GET
      • get list of user's activity (view, like, and share article)
        GET
      • getArticleByCategoryParent
        GET
      • getWeeklyRandomText
        GET
    • file-controller
      • streamPrivateData
    • migration-controller
      • testMigrateDev
    • milestone-controller
      • get list of baby milestones by month
      • get list of pregnancy milestones by week
    • question-and-ask-controller
      • get list of all specialists
      • create new user's question
      • update user's question
      • get list of all user's questions
      • get user's question detail by id

    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.
    image.png
    API doc : swagger article service
    Modified at 2023-07-25 08:50:18
    Next
    Changelog Release
    Built with