[TECH] GUHADA’s Point System

TEMCO
TEMCO

--

Another update of the GUHADA development this week is here!

At this time, we would like to explain about one of the important aspects of GUHADA platform, which is the point system.

Points will be utilized most often in GUHADA platform, and through the community participation in GUHADA, the points can be earned. It also can be used for purchasing products in GUHADA and more.

So, let's take a look at the details of the development process of the points system.

Point System Architecture

  1. Point Use: The API is signaled to avoid the duplicate use of the points.
  2. Point Inquiry: The API is directly signaled to process the inquiry/statement of the available points, use of the points, and points ready to be added.
  3. Points Addition Request: Points related request is processed through AWS SQS.
    a. Even if the API is turned off, the addition of the points is possible, since it is retained and the processing is possible when the API starts again.
    b. Reduction in API server load through the use of the queue for the addition is possible.
  4. AWS auto scaling group: Use for sub-leveling of the API server load.
  5. NoSQL DB: Redis will be used, and unnecessary update from the summary data will be managed.
  6. RDS: MySQL will be used; besides the summary data, the data settings for the number of points, point usage, additional points, and the creation events for points will be managed.

Points development ERD construction/Development Code

The points addition/use/extinction is set as below.

GUHADA Points ERD

1. Point : Base point data

2. Point_save : Data for the point addition

3. point_history : Addition/Usage/Extinction point history of all action

4. point_history_detail : Detail information about point history
5. Receipt/bill : Point payment information
6. user_level_add_point : Points distribution based on the user level and Data Table for other various events.

Flow Charts

Flow charts for the points such as extinction, addition, and usage are shown in the seperate flow chart below.

Most of the process is stated in Korean, however, we would like to transparently inform you of the process besides the coding.

The points save flow chart

The flow chart for point usage

Function justification: Points extinction

Function justification: Points Addition

The points in GUHADA platform can be earned in various activities
The below shows the setting of the point addition depending on the action

Function justification: Points Use

This wraps up the point system portion of the development process.

Thank you for supporting TEMCO.

TEMCO: Innovative Supply Chain Data and E-Commerce Solution through Blockchain and Smart Contract Technology.

▶TEMCO Chatroom: https://t.me/temcolabs
▶TEMCO Official Website: https://temco.io

--

--

TEMCO
TEMCO
Writer for

Blockchain-based Supply Chain Data Management and E-commerce Open Market Platform, GUHADA.