Demo of the Trigger Hook.
Configuration of the demo application infrastructure in the Kubernetes cluster.
For a deeper understanding, read this article.
- Message dashboard - admin panel for accessing the Message API. The interface is based on the Vue framework.
- Message service - responsible for managing messages. Creating, deleting, and deferred sending. It is written on the basis of the Symfony 5 framework (PHP).
- Broker - RabbitMQ message broker for asynchronous communication.
- Monitoring - monitoring the Trigger service. The displayed metrics are described here. Built on the basis of InfluxDb + Grafana.
- Trigger service - the service implements the deferred task execution mechanism. Built on the basis of Trigger Hook.
First of all, the following applications must be installed:
- docker
- kubectl
- minikube
- git
For macOS, it is better to additionally install Virtualbox or Parallels as a driver. Docker as a driver on this system may be slow.
You can use a non-standard driver, such as Virtualbox or Parallels.
minikube start
or
minikube start --vm-driver=parallels
Clone the repositories of the project:
mkdir trigger-hook-demo && cd trigger-hook-demo
git clone https://github.com/pvelx/k8s-message-demo.git
cd k8s-message-demo && ./download
Deploying to a VM:
./deploy
It may take about 10 minutes to download container images and launch them before the app is fully operational.
To access the services from the local machine, you need to run:
./update_hosts
From the deployed host, services will be available via links:
- dashboard.message.com
- api.message.com
- monitoring.message.com
- rabbitmq.message.com
login:rabbitmq
password:secret
Opening the Kubernetes Dashboard:
minikube dashboard
After changing the code in one of the services, you will need to rebuild it:
./build trigger-service
./build message-service
./build message-dashboard
To remove services from a VM, you can use:
./undeploy
For complete deletion:
minikube stop
minikube delete
This project is licensed under the MIT License - see the LICENSE file for details