You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -182,6 +182,10 @@ Now we start the 2nd app:
182
182
183
183
You can now test the apps by going to http://<i>name2</i>.mybluemix.net
184
184
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
+
185
189
# 5. Deploy Flightassist microservices on Kubernetes Cluster
186
190
187
191
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.
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.
228
232
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.
Congratulation, now your Flightassist application should be running on `http://<isito-ingress IP:Port>`.
307
313
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.
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.
331
340
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
+
332
350
# How to Use Flightassist
333
351
334
352
First, you want to [add a trip on TripIt](https://www.tripit.com/trip/create). Then, add a new flight plan foryour trip. In your plan, please fillin your confirmation number or airline with flight number.
0 commit comments