N
N
Nikolai2015-04-23 16:40:04
Django
Nikolai, 2015-04-23 16:40:04

Service oriented architecture in django, how?

Suppose there is such a scheme: a certain web portal is managed through django-cms. Within the framework of the same portal, a web service is created that performs a certain task and displays data in some web form on the portal. CMS and service have their own databases for work.
There are several questions:
1. Does the above fit the definition of SOA? If not, how should it be arranged?
2. How can I implement this schema in Django? Or is there a separate framework for this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya, 2015-04-23
@FireGM

Usually, different applications are divided into different servers / ports and they go to them through some kind of nginx and collect them inside it. Or you can go through js on the client. Naturally, you need to set a timeout and display a stub, if suddenly something happens.
Technopark has good lectures

S
sim3x, 2015-04-23
@sim3x

Such a TK. For example, one web service receives some .xls file, parses it, issues data from there to the form.

-> user uploads file via input_form.html
-> nginx writes xls to directory
user requests processing status by /progress_my_file/ via ajax
-> a script is attached to the directory change event
to process the file, data from django is needed
-> ./manage do_some_actions_with_django /path /to/file.xls
_____________
Too general question
Give more details

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question