Rails: exchange of information between 2 applications

I have this midsize application that is starting to get too complicated. I am considering the possibility of dividing it into two parts. But I'm not sure how to share information between them.

I was able to create two large groups of models; One group deals with “photographs,” and the other deals with “sales data.”

Some useful models, such as those related to authentication / authorization, should be copied, I think. But let me focus on two large groups.

Two sets of data are supported by different people, so they will be separated quite naturally.

The only place where the two groups “overlap” is a few reports that extract data from “paintings” and “sales data”. Information in both cases resembles an array of hashes with different depths, indicating a calculus (about 60 numbers per system).

It is almost the only thing that holds the split; I am not sure what would be the best way to exchange information between both applications.

I would appreciate any guidance on what would be the best way to achieve this. Should I try to use the same database for both applications? Should I use some kind of web service?

+3
source share
2 answers

. , . , , git ... .

, 1 RESTful API, - . , "" .

, , , ^^

+4

, , concurrency.

0

Source: https://habr.com/ru/post/1751416/


All Articles