The car dealership has ordered applications for phones and want to integrate their base, which costs 1C. Applications will write in Java and will most likely be some simple RESTful spring service. Question: is it even possible to configure the hibernate and spring to connect production to their 1C base? That applications could use their base.
1 answer
Most likely, you will have to act through the unloading of the nomenclature (directories, prices) from 1C to some intermediate storage with some frequency.
With unloaded price lists (XML or CSV tables, for example), you can already work through a java adapter (you can upload documents for each position in MongoDB on the application server, and update them there).
Well, let MongoDB already let spring work with its wonderful driver.
Next is the case for the REST API - how the application will work with the service.
Order processing needs to be hung on existing business processes (link to an existing store site via a service, for example).
- But how will such a base parsing structure be displayed on a performance? - raviga
- oneIn general, not very noticeable to the user. 1. We only once a day (for example, at 4:00) or once a month (depending on the requirements of business processes and assortment updateability) upload the item to XML or a table, and then update the status of records in MongoDB (or another database). 2. The service does not work directly with the customer’s 1C DB (it does not slow down the work of other services during the “selling time”). 3. The service works from the "fast" database (Mongo or local database not loaded with other requests on the machine with the service). 4. The application works with the service and does not suffer in terms of performance. - DimXenon
- oneBottlenecks: 1. Unloading the nomenclature into the database. 2. Operations with the web store (if any). The question is: does the company have a web store on 1C or are they sitting "on the phone" and handing out orders in 1C? - DimXenon
- oneThere is an option ( infostart.ru/public/359102 ) to poshamanit and make friends 1C with Hibernate, but then there are risks of the impact of 1C performance on the service. (And for a good flow of orders - service first, after all). So, it is better to once again inform the customer that the product will be soon, than to miss the customer due to application performance problems. - DimXenon
- oneHere, by the way, the question of po interchange of data was discussed: ru.stackoverflow.com/questions/215894/… Here's what they refer to in the main answer: v8.1c.ru/metod/books/book.jsp?id=401 - DimXenon
|