GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bart-at-google/fleet-events-reference-solution

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

17 Commits
17 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
beam
beam
 
 
cloud-functions
cloud-functions
 
 
diagrams
diagrams
 
 
terraform
terraform
 
 
tools/python
tools/python
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Documents Index

  • Fleet Events Reference Solution (landing page)
    • Getting started - Dataflow (set up Fleet Events with the Dataflow processor)
    • Getting started - Cloud Functions (set up Fleet Events with the Cloud Functions processor)
      • ODRD Overview (describes components of the Cloud Functions processor)
        • ODRD handlers (describes each handler supported by ODRD solution)
        • Transactions (describes Firestore transactions)
      • LMFS Overview (describes components of the Cloud Functions processor)
        • LMFS handlers (describes each handler supported by LMFS solution)
        • Transactions (describes Firestore transactions)

Repo Structure

This git repo is structured as follows.

  • cloud-functions/: reference functions source code for Cloud Functions
  • beam/: reference functions source code for Dataflow
  • terraform/: deployment automation with terraform
    • modules/: folder holding multiple terraform modules
      • fleet_events:
        • README.md: README for the module
        • main.tf: main code for the module
        • variables.tf: defines input parameters of the module
        • outputs.tf: defines outputs of the module
        • *.tf:
        • examples/: one or more example use of the module
          • with_existing_project/:
            • README.md: readme for the example
            • main.tf: main terraform code showing use of the module
            • *.tf
            • terraform.tfvars.sample: sample config file
          • with_new_project/
            • …
      • fleet-events-function
        • …
      • fleetengine-logging-config
        • …
  • tools : utilities
    • python
      • *.py : utilities to validate the deployment
  • diagrams/: diagrams used in articles
  • *.md: additional documents

Fleet Events Reference Solution

The Fleet Events Reference Solution is an open source solution that enables Mobility customers and partners to generate key events on top of Fleet Engine and Google Cloud Platform components. The reference solution supports customers using the Last Mile Fleet Solution and On Demand Rides and Delivery.

With the Fleet Events Reference Solution, customers can generate the following events with little or no custom code:

  1. ETA change of task/trip arrival
  2. Relative ETA change of task/trip arrival
  3. Time remaining to task/trip arrival
  4. Distance remaining to task/trip arrival
  5. Task/TripOutcome status change

Each component of the reference solution can be customized to suit your business needs.

To get started - we support different Processing engines to compute events and provide a set of tools to automatically provision building blocks. To set up “Fleet Events” within your GCP Project, choose a Processor and follow the guides below. For those who are new to Fleet Events, we recommend starting with Cloud Functions:

  • Getting started with Fleet Events - Cloud Functions
  • Getting started with Fleet Events - Dataflow

Overview and logical building blocks

Diagram : Fleet Events overview and logical building blocks

alt_text

The reference solution contains the following components:

  • Event Source: Where the original event stream comes from. Both “Last Mile Fleet Solution” or “On Demand Rides and Deliveries Solution” have integration with Cloud Logging that helps to turn Fleet Engine RPC call logs into event streams available to developers. This will be the core source to consume.
  • Processing: Raw RPC call logs will be converted into state change events within this block that computes over a stream of log events. To detect such change, this component requires a state store so that new events can be compared with previous ones to detect change. Events might not always include all the information of interest. In such cases, this block might make look up calls to backends as needed.
    • State store: Some processing frameworks provide intermediate data persistent on its own. But if not, in order to store state on your own, since these should be unique to a vehicle and event type, a K-V type data persistence service will be a good fit.
  • Sink (Custom Events): Detected state change should be made available to any application or service that can benefit from it. Therefore it will be a natural choice to publish this custom event to an event delivery system for downstream consumption.
  • Downstream service: Code that consumes the generated events and takes actions unique to your use case.

Contributors

Google maintains this article. The following contributors originally wrote it.

Principal authors:

  • Ethel Bao | Software Engineer, Google Maps Platform
  • Mohanad Almiski | Software Engineer, Google Maps Platform
  • Naoya Moritani | Solutions Engineer, Google Maps Platform

About

No description, website, or topics provided.

Resources

Readme
License

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.