daas workshop
  • Hands-On experience building a Data as a Service Platform
  • Set Up
    • Creating a Workstation
    • Installing Tools
    • Starting Kafka
    • Congratulations
  • Module I - Overview of the DaaS Pattern
    • Section I - The Overall Pattern
    • Section II - Data Sourcing
    • Section III - Data Provisioning
    • Section IV - Data Consumption
  • Module II - Building a Rust Project
    • Section I - Create a Package
    • Section II - Creating a Library
    • Section III - Creating an Executable
    • Section IV - Creating a Hello World RESTful Endpoint
      • Section IV - manifest
      • Section IV - library
      • Section IV - module
      • Section IV - integrated testing
      • Section IV - executable
  • Module III - Building a RESTful Endpoint for Sourcing Data
    • Section I - Overview
    • Section II - manifest
    • Section III - executable
    • Section IV - starting the service
    • Section V - service testing
  • Module IV - Building a Genesis Microservice for Processing the Sourced Data
    • Section I - Overview
    • Section II - manifest
    • Section III - executable
    • Section IV - starting the service
    • Section V - service testing
  • Module V - Building a Provisioning Microservice
    • Section I - Overview
    • Section II - manifest
    • Section III - executable
    • Section IV - starting the service
    • Section V - adding the business logic
    • Section VI - testing the service
  • Module VI - Building a RESTful Endpoint for Publishing Reporting Data
    • Section I - Overview
    • Section II - manifest
    • Section III - executable
    • Section IV - starting the service
    • Section V - adding the business logic
    • Section VI - testing the service
  • Privacy Design Strategies
  • Further Exploration
Powered by GitBook
On this page

Was this helpful?

  1. Module V - Building a Provisioning Microservice

Section IV - starting the service

Before we modify the service to perform our desired business logic, (to aggregate the clothing orders) we first want to check that the service is consuming the DaaSDcouments and extracting the data correctly.

Since this is a microservice that runs in the background, we will start the service using the .target/debug/ executable that is created by the cargo build command.

ArchConfWorkshopUser:~/environment/rust-daas (master) $ cargo build
   Compiling rust-daas v0.1.0 (/home/ec2-user/environment/rust-daas)
    Finished dev [unoptimized + debuginfo] target(s) in 26.11s

NOTE: Make sure the all you dependent services are still runing: Zookeeper, Kafka, sorucing, and myapp_genesis

In a new terminal, run the following command:

./rust-daas/target/debug/myapp_order_clothing
ArchConfWorkshopUser:~/environment/rust-daas (master) $ ./rust-dass/target/debug/myapp_order_clothing 
Clothing Orders processor is running ...
Press [Enter] to stop the Clothing Orders processor.
Order Number 5000 from the iStore has a status of "new"...
Order Number 5000 from the iStore has a status of "new"...
Order Number 5000 from the iStore has a status of "new"...
Order Number 5000 from the iStore has a status of "new"...
Order Number 5000 from the iStore has a status of "new"...
Order Number 5000 from the iStore has a status of "new"...
Order Number 5000 from the iStore has a status of "new"...
Order Number 5000 from the iStore has a status of "new"...
Order Number 5000 from the iStore has a status of "new"...
Order Number 5000 from the iStore has a status of "new"...
Order Number 5000 from the iStore has a status of "new"...
PreviousSection III - executableNextSection V - adding the business logic

Last updated 4 years ago

Was this helpful?