How can i combine flask and nameko?

0 votes
How should we combine Flask web application and Nameko microservices?

 I have flask-based web application. This application can execute long (5-10 minutes) tasks. I want to be able to write and attach additional modules to this application while it is still running. It is OK if I stop application while in development, but I cannot stop it in production. Is it the best solution to my problem? Also can I mix Flask app and Nameko microservices?
Feb 4, 2019 in Python by ana1504.k
• 7,890 points

1 answer to this question.

0 votes

You absolutely can use nameko and Flask together. 

In that configuration though, you're covering the same ground that Celery was built for -- namely handling long-running tasks outside the request-response cycle. Frankly the example in the gist would be much better implemented exclusively as a nameko app (using the built-in http entrypoint), because it’s not using any of the more advanced web framework-like features that Flask gives you.

answered Feb 4, 2019 by SDeb
• 13,250 points

Related Questions In Python

+1 vote
4 answers

How can I concatenate str and int objects?

If you want to concatenate int or ...READ MORE

answered Oct 18, 2018 in Python by subhm
0 votes
1 answer

How can I find out the index of an element from row and column in Python?

You probably want to use np.ravel_multi_index: [code] import numpy ...READ MORE

answered Apr 16, 2018 in Python by charlie_brown
• 7,780 points
0 votes
1 answer

How can I print variable and string on same line in Python?

Use , to separate strings and variables while printing: print ...READ MORE

answered Sep 17, 2018 in Python by Priyaj
• 57,660 points
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,366 views
0 votes
0 answers
0 votes
1 answer

How can I deal with python eggs for multiple platforms in one location?

Try virtualenv : This helps you create isolated ...READ MORE

answered May 28, 2019 in Python by SDeb
• 13,250 points
0 votes
1 answer

How can I make an EXE file from a Python program?

Auto PY to EXE - A .py ...READ MORE

answered Aug 6, 2019 in Python by SDeb
• 13,250 points