All Projects → microsoft → inventory-hub-java-on-azure

microsoft / inventory-hub-java-on-azure

Licence: MIT license
Sample Inventory Hub App using Serverless and Event-driven Java - on Azure with Spring Boot, Tomcat, Functions, Event Hub and Cosmos DB

Programming Languages

java
68154 projects - #9 most used programming language
shell
77523 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to inventory-hub-java-on-azure

MCW-OSS-PaaS-and-DevOps
MCW OSS PaaS and DevOps
Stars: ✭ 49 (+172.22%)
Mutual labels:  functions, cosmosdb
AzureServicesForUnity
Accessing Azure services (App Service, Table Storage, CosmosDB with Table API, Event Hubs) from a Unity game
Stars: ✭ 52 (+188.89%)
Mutual labels:  event-hubs, cosmosdb
parallelizer
Simplifies the parallelization of function calls.
Stars: ✭ 62 (+244.44%)
Mutual labels:  functions
kubernetes-front-end-backend-example
Demonstration on how to setup ingress, two services ( frontend and backend) with reverse proxy
Stars: ✭ 24 (+33.33%)
Mutual labels:  tomcat
azure-event-hubs-java
☁️ Java client library for Azure Event Hubs
Stars: ✭ 49 (+172.22%)
Mutual labels:  event-hubs
entref-spring-boot
A RESTful DAL (Database Abstraction Layer) reference implementation written using Spring.
Stars: ✭ 19 (+5.56%)
Mutual labels:  cosmosdb
C-Complete-practice
This repository will contains C programs from beginners to advance level
Stars: ✭ 59 (+227.78%)
Mutual labels:  functions
spring-boot-fat-jar-jsp-sample
No description or website provided.
Stars: ✭ 24 (+33.33%)
Mutual labels:  tomcat
docker-pega-web-ready
Docker project for generating a tomcat docker image for Pega
Stars: ✭ 46 (+155.56%)
Mutual labels:  tomcat
sequence-as-promise
Executes array of functions as sequence and returns promise
Stars: ✭ 23 (+27.78%)
Mutual labels:  functions
azure-event-hubs-go
Golang client library for Azure Event Hubs https://azure.microsoft.com/services/event-hubs
Stars: ✭ 80 (+344.44%)
Mutual labels:  event-hubs
shogun
Shogun: Functions As Commands for the true samurai developer.
Stars: ✭ 23 (+27.78%)
Mutual labels:  functions
kafka-connect-cosmosdb
Kafka Connect connectors for Azure Cosmos DB
Stars: ✭ 28 (+55.56%)
Mutual labels:  cosmosdb
Tomcat-Webmin-Module
Apache Tomcat Plugin for Webmin
Stars: ✭ 19 (+5.56%)
Mutual labels:  tomcat
cosmosdb-repo
Repository pattern for Cosmos DB
Stars: ✭ 62 (+244.44%)
Mutual labels:  cosmosdb
FSharp.CosmosDb
An F# wrapper around Cosmos DB's .NET SDK to make it more friendly for F# developers
Stars: ✭ 64 (+255.56%)
Mutual labels:  cosmosdb
Start-Stop
A python game for beginners. This game is very important for developers.
Stars: ✭ 14 (-22.22%)
Mutual labels:  functions
bitnami-docker-tomcat
Bitnami Docker Image for Tomcat
Stars: ✭ 44 (+144.44%)
Mutual labels:  tomcat
linbaser
The program on a given grid from a file builds an approximation of the function by a piecewise linear basis. Made mostly in Russian, because of university subject.
Stars: ✭ 10 (-44.44%)
Mutual labels:  functions
spring-data-cosmosdb
Access data with Azure Cosmos DB
Stars: ✭ 94 (+422.22%)
Mutual labels:  cosmosdb

Inventory Hub App using Java on Azure

The purpose of this sample application is to illustrate building responsive systems with serverless, event-driven Java on Azure; the result of this project will be to create a real-time inventory hub.

Requirements

In order to create and deploy this sample application, you need to have the following:

An Azure subscription; if you don't already have an Azure subscription, you can activate your MSDN subscriber benefits or sign up for a free Azure account.

In addition, you will need all of the following components before you go through the steps in this README:

| Azure CLI | Java 8 | Maven 3 | Git |

NOTE: There are additional requirements in the ~/deployment/README.md file which are required in order to setup your development environment; other required components will be installed automatically by the provisioning scripts.

Overview

In the following sections, you will create a development sandbox environment on Azure which uses the following components:

  • Two Event Hubs in one Event Hub Namespace per region
    • an event hub receives events from Point of Sale (POS) and Point of Intake (POI) units
    • an event hub receives events to notify any app that listens for inventory change
  • One Cosmos DB configured for "read/write" in the first region and "read" for additional regions
  • Set of Azure Functions apps per region
    • One Point of Sale (POS) function app to simulate a terminal in a store, one per terminal
    • One Point of Intake (POI) function app to simulate a terminal in a warehouse, one per terminal
    • One Update Inventory function app triggered by events produced by POS and POI units to update inventory
    • One Notify function app triggered by updates to inventory
  • One Azure Web App per region or One Pivotal Cloud Foundry instance on Azure per region

The following diagram illustrates the full topology for this sample application environment:

Create and Deploy the Inventory Hub

Create the initial build

  1. Open a command prompt and navigate to the ~/deployment/ folder of your local repo.
   cd deployment
  1. Login to your Azure account and specify which subscription to use:

    az login
    az account set --subscription "<your-azure-subscription>"

    NOTE: You can use either a subscription name or id when specifying which subscription to use; to obtain a list of your subscriptions, type az account list.

  2. Set a unique prefix for creating an initial layout on Azure.

    export INVENTORY_HUB_APP_NAME="<your-unique-prefix>"
  3. Follow the deployment README instructions to create Azure resources.

Deploy Inventory Processor

  1. Deploy Update Product Inventory function app as described in the README
  2. Deploy Append Transactions function app as described in the README

Deploy Inventory Dashboard Web App

  1. Deploy Inventory Dashboard Web app as described in README

Deploy POI and POS Terminals as Azure Function Apps

  1. Deploy Point of Inventory terminal as function app as described in README. Deploy one per terminal. If you were to imagine 4 terminals then you would deploy 4 similar function apps
  2. Deploy Point of Sale terminal as function app as described in README. Deploy one per terminal. If you were to imagine 4 terminals then you would deploy 4 similar function apps

Open the Inventory Hub Web App

Open the Inventory Hub Web app ...

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].