S
S
stroganoff2018-06-20 14:45:31
Software design
stroganoff, 2018-06-20 14:45:31

Several services and one base?

There is a service with API. Pretty high loaded. The essence of the logic of its work: receiving requests via API, processing data, laying out by leaving, assembling and sending to external services.
It stores its settings in the database, where the structures necessary for the operation of the service are also stored.
There are also user accounts and an administrator's office.
Postgresql base, service in python, cabinets in php.
The question is how to connect the service with cabinets?
The task is divided into 2 parts: you need to configure the service through the cabinets and view the data in the cabinets.
There is a proposal that the cabinets go directly to the service base.
But in this case, you need to add entities, columns, tables to the database that the service itself does not need to work. For example, some of the data is stored in JSONB fields. And in the cabinets, the values ​​of these JSONs must be reassembled and presented in a different form. And, accordingly, logic needs to be added to the service itself to fill in these fields.
Tell me, is this solution correct, and / or are there any template solutions for this problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question