Skip to content

BoddyShen/UMassenger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshot 2024-07-09 at 11 28 03 PM

development

  • refer to wiki for git flow

Setting Up and Running the Development Environment

cd ./backend
cp src/main/resources/.env.example src/main/resources/.env
# entering the credentials -> @ wen if you dont have them yet

cd ./backend
mvn package -Dmaven.test.skip
# target folder created

java -Dspring.profiles.active=development -jar target/cs520-0.0.1-SNAPSHOT.jar

frontend document

api-doc

start backend service, then head to: https://localhost:3000/swagger-ui/index.html

Distributed Backend

Config Server: The configuration is managed by Spring Cloud Config Server, ensuring centralized and dynamic configuration management across our services.
Cloud Gateway: Cloud Gateway acts as the entry point, streamlining access to our microservices through a single interface.
ms-init-setup: The initial setup of our microservices environment, including configuration maps, secrets, and Redis integration for caching and session management, is automated with Kubernetes, allowing for efficient deployment on the Google Cloud Platform using Google Kubernetes Engine (GKE).
Account Service: Manages user accounts, offering comprehensive account management capabilities.
Match Service: Facilitates user matching, leveraging custom logic to connect users effectively.
Chat Service: Employs WebSocket technology to offer real-time chat rooms, creating engaging user interactions.

Kubernetes Service Discovery & Communication

Our system utilizes Kubernetes for service registration and discovery, enabling a dynamic and scalable microservices architecture. Kubernetes simplifies the process of deploying, scaling, and managing containerized applications, and it provides a robust mechanism for services to discover and communicate with each other.

Service Registration and Discovery with Kubernetes: Services are automatically registered in Kubernetes' internal DNS upon deployment, allowing them to be discovered and communicated with using simple DNS queries. This native integration eliminates the need for a separate service registry.

Inter-Service Communication with Feign and Kafka: For direct service-to-service calls, we leverage cloud.openfeign.FeignClient for its declarative REST client features, making HTTP requests straightforward and type-safe. Feign integrates seamlessly with our microservices, providing a simplified way to consume APIs of registered services.

Asynchronous Messaging with Kafka: To further decouple our services and handle event-driven communication, we utilize Kafka. This powerful message broker enables us to efficiently manage real-time data feeds and build reactive systems that are both resilient and scalable.

Jenkins Integration & GCP Deployment Overview

Our development workflow is significantly enhanced through the integration of Jenkins, a leading open-source automation server, which connects to our microservices repositories. This setup ensures that any push to a repository triggers an automated Continuous Integration/Continuous Deployment (CI/CD) pipeline. Here's how it works:

Automated Build and Deployment with Jenkins: Jenkins is configured to monitor our microservices' repositories for changes. Upon detecting a push, it automatically initiates the CI/CD pipeline, starting with code compilation, running tests to ensure code quality and stability, and then proceeding to build Docker images.

Docker Image Management and GCP Artifact Registry: The newly built Docker images are then pushed to Google Cloud Platform's Artifact Registry, a secure and integrated container image storage solution. This process ensures that our Docker images are readily available for deployment and versioning is managed effectively.

Deployment to Google Kubernetes Engine (GKE): Once the Docker images are stored in the Artifact Registry, the next step in our pipeline involves deploying these images to Google Kubernetes Engine (GKE). GKE allows us to leverage Kubernetes' powerful orchestration capabilities for managing our containerized applications, ensuring they are deployed, updated, and scaled seamlessly across our cloud infrastructure.

Screenshot 2024-02-21 at 12 51 09 AM Screenshot 2024-02-21 at 12 51 21 AM

About

CS520_group_project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 50.7%
  • TypeScript 47.5%
  • Other 1.8%