In our previous post we finally began to see the individual microservices coming together to create an abstract plausible data flow. In this post, we are going to chain our microservices together to run an entire calculation stream sequentially. We are going to illustrate how to orchestrate a collection of microservices using Docker Compose, and we are going to illustrate how to use the Docker Registry to avoid recreating the wheel when creating microservice ecosystems.
In our series we have constructured two microservices. The first would submit a string of text, or a message, to IBM Watson’s tone analysis service and report back tonal analytics based on the input. The second microservice would accept a URL and return a text scrape of the content of that page. Continue reading Part 7: Creating a Latest Stock Ticker News Microservice
Just a quick post for those of you that have been following the Microservices with Watson, Python, Docker, and Go – I have added images to the Docker Hub repository. You can now pull down the microservices and deploy them with out having to do anything other than a ‘docker run’
Tone Analysis Docker
Web Content Extractor and Scraper Docker
In Part 1 of this series we created a simple Go function to extract the content of a web page. In this posting, we are going to take that function and use the nicely developed http package of golang to expose that function as a microservice. Continue reading Part 6: Creating a Go Web Content Extraction Microservice
Creating a Python Microservice using Flask
We already have a Python application we wrote back in part 3. This application takes in a text string and submits the text to IBM Watson to return an analysis of the text. The next step in building our application would be to take this piece of code and turn it into a Microservice.
The first step of creating a microservice from our code is to expose the functionality through some sort of interface. We will use Flask to expose our functionality via a HTTP (1.1. we will work on a 2.0 architecture update in a future post). Additionally we will set our BlueMix credentials from environment variables where the Python is executed. Continue reading Part 5: Making Watson Microservice using Python, Docker, and Flask