Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

SimpleOne can be described as a three-tier system, having SimpleOne comprises of the backend back-end server and frontend front-end server.

Backend Back-end server responsibility is interaction with the database, it handles all the queries received from the frontend server. By results, it forms a JSON object and returns it to a frontend front-end server via API.

Backend and frontend The back-end and front-end interaction scheme

The frontend front-end server works as a SPA (Single Page Application). It means that the page is loaded only once, and then, when changed, or when any button clicked, the query to the backend back-end server is sent to process the changes. The backend back-end server processes this query and returns the answer in JSON format. After that, the changes are applied and displayed in the interface.

SPA finctionality functionality scheme

Сипмл состоит из бэкенда и фронтенда. Они расположены на разных серверах. Бэкенд отвечает за взаимодействие с БД, т.е. с таблицами. Он формирует JSON-объект, который через API возвращает на фронтенд. Фронтент работает по принципу SPA, т.е. единожды загружает страницу, а далее, при любом изменении, при любом нажатии кнопки идёт запрос к бэкенд-серверу, который в JSON-виде возвращает ответ. Причем он возвращает только запрошенные данные, происходит экономичное взаимодействие, что экономит ресурсы (тут можно нарисовать простенькую схему). Фронтенд построен через React, эта библиотека позволяет удобно увязывать данные с версткой.