-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[demo] rename demo services #6438
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -57,11 +57,11 @@ problems in distributed applications. | |||||
A PHP service should be added to the main application as an 'admin service'. A | ||||||
Database should be added to enable CRUD functionality on the Product Catalog. | ||||||
|
||||||
The 'shippingservice' should be reimplemented in Rust. | ||||||
The 'shipping' service should be reimplemented in Rust. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
The 'currencyservice' should be reimplemented in C++. | ||||||
The 'currency' service should be reimplemented in C++. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
The 'emailservice' should be reimplemented in Ruby. | ||||||
The 'email' service should be reimplemented in Ruby. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
For future iterations, the 'frontend' service can be extended with a mobile | ||||||
application written in Swift. | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -70,11 +70,11 @@ work, and viewing the details allows us to get a better idea of what's going on. | |||||
We can see in our waterfall view that the `app.cache_hit` attribute is set to | ||||||
`false`, and that the `app.products.count` value is extremely high. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
Returning to the search UI, filter to `recommendationservice` in the Service | ||||||
dropdown, and search for `app.cache_hit=true` in the Tags box. Notice that | ||||||
requests tend to be faster when the cache is hit. Now search for | ||||||
`app.cache_hit=false` and compare the latency. You should notice some changes in | ||||||
the visualization at the top of the trace list. | ||||||
Returning to the search UI, filter to `recommendation` in the Service dropdown, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
and search for `app.cache_hit=true` in the Tags box. Notice that requests tend | ||||||
to be faster when the cache is hit. Now search for `app.cache_hit=false` and | ||||||
compare the latency. You should notice some changes in the visualization at the | ||||||
top of the trace list. | ||||||
|
||||||
Now, since this is a contrived scenario, we know where to find the underlying | ||||||
bug in our code. However, in a real-world scenario, we may need to perform | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
--- | ||
title: Services | ||
aliases: [service_table, service-table] | ||
cSpell:ignore: loadgenerator | ||
--- | ||
|
||
To visualize request flows, see the [Service Diagram](../architecture/). | ||
|
||
| Service | Language | Description | | ||
| ----------------------------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------ | | ||
| [accountingservice](accounting/) | .NET | Processes incoming orders and count the sum of all orders (mock/). | | ||
| [adservice](ad/) | Java | Provides text ads based on given context words. | | ||
| [cartservice](cart/) | .NET | Stores the items in the user's shopping cart in Redis and retrieves it. | | ||
| [checkoutservice](checkout/) | Go | Retrieves user cart, prepares order and orchestrates the payment, shipping and the email notification. | | ||
| [currencyservice](currency/) | C++ | Converts one money amount to another currency. Uses real values fetched from European Central Bank. It's the highest QPS service. | | ||
| [emailservice](email/) | Ruby | Sends users an order confirmation email (mock/). | | ||
| [frauddetectionservice](fraud-detection/) | Kotlin | Analyzes incoming orders and detects fraud attempts (mock/). | | ||
| [frontend](frontend/) | TypeScript | Exposes an HTTP server to serve the website. Does not require sign up / login and generates session IDs for all users automatically. | | ||
| [loadgenerator](load-generator/) | Python/Locust | Continuously sends requests imitating realistic user shopping flows to the frontend. | | ||
| [paymentservice](payment/) | JavaScript | Charges the given credit card info (mock/) with the given amount and returns a transaction ID. | | ||
| [productcatalogservice](product-catalog/) | Go | Provides the list of products from a JSON file and ability to search products and get individual products. | | ||
| [quoteservice](quote/) | PHP | Calculates the shipping costs, based on the number of items to be shipped. | | ||
| [recommendationservice](recommendation/) | Python | Recommends other products based on what's given in the cart. | | ||
| [shippingservice](shipping/) | Rust | Gives shipping cost estimates based on the shopping cart. Ships items to the given address (mock/). | | ||
| [react-native-app](react-native-app/) | TypeScript | React Native mobile application that provides a UI on top of the shopping services. | | ||
| Service | Language | Description | | ||
| ------------------------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------ | | ||
| [accounting](accounting/) | .NET | Processes incoming orders and count the sum of all orders (mock/). | | ||
| [ad](ad/) | Java | Provides text ads based on given context words. | | ||
| [cart](cart/) | .NET | Stores the items in the user's shopping cart in Valkey and retrieves it. | | ||
| [checkout](checkout/) | Go | Retrieves user cart, prepares order and orchestrates the payment, shipping and the email notification. | | ||
| [currency](currency/) | C++ | Converts one money amount to another currency. Uses real values fetched from European Central Bank. It's the highest QPS service. | | ||
| [email](email/) | Ruby | Sends users an order confirmation email (mock/). | | ||
| [fraud-detection](fraud-detection/) | Kotlin | Analyzes incoming orders and detects fraud attempts (mock/). | | ||
| [frontend](frontend/) | TypeScript | Exposes an HTTP server to serve the website. Does not require sign up / login and generates session IDs for all users automatically. | | ||
| [load-generator](load-generator/) | Python/Locust | Continuously sends requests imitating realistic user shopping flows to the frontend. | | ||
| [payment](payment/) | JavaScript | Charges the given credit card info (mock/) with the given amount and returns a transaction ID. | | ||
| [product-catalog](product-catalog/) | Go | Provides the list of products from a JSON file and ability to search products and get individual products. | | ||
| [quote](quote/) | PHP | Calculates the shipping costs, based on the number of items to be shipped. | | ||
| [recommendation](recommendation/) | Python | Recommends other products based on what's given in the cart. | | ||
| [shipping](shipping/) | Rust | Gives shipping cost estimates based on the shopping cart. Ships items to the given address (mock/). | | ||
| [react-native-app](react-native-app/) | TypeScript | React Native mobile application that provides a UI on top of the shopping services. | |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,7 +1,7 @@ | ||||||
--- | ||||||
title: Accounting Service | ||||||
linkTitle: Accounting | ||||||
aliases: [accountingservice] | ||||||
aliases: [accounting] | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Aliases are "forever". This must not be renamed:
Suggested change
Please revert the changes to |
||||||
--- | ||||||
|
||||||
This service calculates the total amount of sold products. This is only mocked | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.