I have three products, and want to host them on my server.
I am not sure how do I deploy them. From the reach I have done, I understand there are two ways.
- Deploy each product on different port
http://3.18.21.199:5001/twiiter http://3.18.21.199:5002/summary http://3.18.21.199:5003/sentiment
- Deploy each on same port with different route.
http://3.18.21.199:5000/twiiter http://3.18.21.199:5000/summary http://3.18.21.199:5000/sentiment
Can I get suggestion from flask geek,. That what is the correct way.
Also when we launch product, it's not preferable that we give link with port number. Like
3.18.21.199:5001/twiiter 3.18.21.199:5002/summary 3.18.21.199:5003/sentiment
Ideally it should be
3.18.21.199/twiiter 3.18.21.199/summary 3.18.21.199/sentiment
How can we achieve this?