Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 512614a

Browse files
authored
Change the comparison content
1 parent 7c872f5 commit 512614a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ Now we start the 2nd app:
182182

183183
You can now test the apps by going to http://<i>name2</i>.mybluemix.net
184184

185+
## Take away points
186+
To push an app, we simply use `cf push` command. There is no container image or repository involved. Cloud Foundry has wide inventories of build packs to support different programming languages. If you run `cf marketplace`, you can find the huge list of services provided by Bluemix that can eaisly be consumed by your application. When pushing multi apps that needs to communite to each other, however, it is a little hacky. Another common pratice than the environment variables we used in this example, is to bind a message queue service.
187+
188+
185189
# 5. Deploy Flightassist microservices on Kubernetes Cluster
186190

187191
In this scenario, we use the Flightassist microservices in which are in two containers. We will run Flightassist as our main application with weather-service as our microservice to query the weather data. Then, we will host those containers using Kubernetes.
@@ -226,6 +230,8 @@ kubectl create -f flightassist.yaml
226230

227231
Congratulation, now your Flightassist application should be running on `http://<your_node_ip>:30080`. You can go to [How to Use Flightassist](#how-to-use-flightassist) and start testing your application.
228232

233+
## Take away points
234+
Kubernetes is a powerful orchestration tool. In this example we get a taste of the logical concept of cluster, creating a deployment and service binding. It also has the container networking features built in. However, as a developer, you need to deal with container image and repositories.
229235

230236
# 6. Deploy Flightassist microservices on Istio
231237

@@ -305,6 +311,9 @@ kubectl create -f <(istioctl kube-inject -f flightassist.yaml --includeIPRanges=
305311

306312
Congratulation, now your Flightassist application should be running on `http://<isito-ingress IP:Port>`.
307313

314+
## Takeaway points
315+
Istio is an addon feature to manage your application traffic. It has to reside on a paltform. Other than the proxy feature we tested in the example, it also provides rich layer-7 routing, circuit breakers, policy enforcement and telemetry recording/reporting functions.
316+
308317
# 7. Deploy Flightassist leveraging OpenWhisk functions
309318

310319
In this scenario, we will deploy Flightassist with a function to show how you could replace your microservices with OpenWhisk actions.
@@ -329,6 +338,15 @@ kubectl create -f flightassist_serverless.yaml
329338
330339
Congratulation, now your Flightassist application should be running on `http://<your_node_ip>:30080`. Also, you can learn about [How to Use Flightassist](#how-to-use-flightassist) and start testing your application.
331340
341+
## Takeaway points
342+
In this example, the flightassist app is a perfect use case to use openwhisk:
343+
a. It is an event triggered app, the triggering point is when it is accessed
344+
b. It is a stateless app, there is no sessions to manage
345+
c. It doesn't require persistance
346+
d. It performs a simple function
347+
348+
Many complicated apps are not so easy to be converted into servless functions.
349+
332350
# How to Use Flightassist
333351

334352
First, you want to [add a trip on TripIt](https://www.tripit.com/trip/create). Then, add a new flight plan for your trip. In your plan, please fill in your confirmation number or airline with flight number.

0 commit comments

Comments
 (0)