istio-fleetman

repository·master·Indexed 19 days ago

https://github.com/dickchesterwood/istio-fleetman

A project designed to make Istio understandable through hands-on training for Udemy and VirtualPairProgrammers courses. It includes a sample system consisting of an Angular frontend (IstioFleetmanWebappAngular), a backend facade (fleetman-api-gateway), a position data simulator (fleetman-position-simulator), and a position tracker (fleeman-position-tracker).

Tokens
719
Snippets
1
Records
7
Agent score
66%

What's inside istio-fleetman

  1. Overview of fleeman-position-tracker

    master

    The fleeman-position-tracker is a microservice designed to consume vehicle position reports from a queue. For testing purposes, it utilizes an in-memory data store to hold these reports.

    Warning regarding concurrency: The current in-memory data store implementation is likely not thread-safe. While attempts have been made to address this, race conditions may occur. This component is intended for quick and dirty testing of microservice logic rather than production use. In a production environment, a proper external datastore should be used instead of this in-memory implementation.

  2. Bootstrap the IstioFleetman Angular application

    master

    The application is bootstrapped using Angular's platformBrowserDynamic API, which loads the AppModule to initialize the web application in the browser. The application behavior changes based on the environment.production flag: if true, enableProdMode() is called to enable production optimizations.

    import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
    import { AppModule } from './app/app.module';
    import { environment } from './environments/environment';
    
    if (environment.production) {
      enableProdMode();
    }
    
    platformBrowserDynamic().bootstrapModule(AppModule)
      .catch(err => console.log(err));