wp2-be-audit-bs/README.md

3.2 KiB

Audit Business Service

Audit Business Service is a Spring Boot application built with Maven, providing ingest operations for all audit related events by consuming the same from all the relevant event streams.

Features

  • Audit Log
    • Create by processing events
    • Supported Streams
      • Catalog BS
      • Event BS

Getting Started

Requirements

For building and running the application you need:

  • GIT 2.48.1 +
  • JDK 21 +

Clone the repository

git clone  https://code-repo.d4science.org/Resilience/wp2-be-audit-bs.git
cd wp2-be-audit-bs

Build the project

./mvnw clean install

Run the application

java -jar wp2-be-audit-bs-server/target/<jar-file>

Access the API

  • Base URL: http://localhost:8080/api/v1/bs
  • Swagger UI URL: http://localhost:8080/api/v1/bs/swagger-ui/index.html

Development

Please review this wiki page and follow the guidelines mentioned - Code Management Workflow and Standards

Related RabbitMQ Streams

The following commands can be used to create super streams for catalog message

docker exec rabbitmq rabbitmq-streams add_super_stream itserr-stream-catalog-event --vhost itserr_vhost --partitions 3
docker exec rabbitmq rabbitmq-streams add_super_stream itserr-stream-catalog-event-dlq --vhost itserr_vhost --partitions 3
docker exec rabbitmq rabbitmq-streams add_super_stream itserr-stream-discussion-event --vhost itserr_vhost --partitions 3
docker exec rabbitmq rabbitmq-streams add_super_stream itserr-stream-discussion-event-dlq --vhost itserr_vhost --partitions 3
docker exec rabbitmq rabbitmq-streams add_super_stream itserr-stream-event-notification --vhost itserr_vhost --partitions 3
docker exec rabbitmq rabbitmq-streams add_super_stream itserr-stream-event-notification-dlq --vhost itserr_vhost --partitions 3
docker exec rabbitmq rabbitmq-streams add_super_stream itserr-stream-institutional-page-notification --vhost itserr_vhost --partitions 3
docker exec rabbitmq rabbitmq-streams add_super_stream itserr-stream-institutional-page-notification-dlq --vhost itserr_vhost --partitions 3
docker exec rabbitmq rabbitmq-streams add_super_stream itserr-stream-news-event --vhost itserr_vhost --partitions 3
docker exec rabbitmq rabbitmq-streams add_super_stream itserr-stream-news-event-dlq --vhost itserr_vhost --partitions 3
docker exec rabbitmq rabbitmq-streams add_super_stream itserr-stream-user-profile-event --vhost itserr_vhost --partitions 3
docker exec rabbitmq rabbitmq-streams add_super_stream itserr-stream-user-profile-event-dlq --vhost itserr_vhost --partitions 3
docker exec rabbitmq rabbitmq-streams add_super_stream itserr-stream-workspace-event --vhost itserr_vhost --partitions 3
docker exec rabbitmq rabbitmq-streams add_super_stream itserr-stream-workspace-event-dlq --vhost itserr_vhost --partitions 3
docker exec rabbitmq rabbitmq-streams add_super_stream itserr-stream-favourite-user-event --vhost itserr_vhost --partitions 3
docker exec rabbitmq rabbitmq-streams add_super_stream itserr-stream-favourite-user-event-dlq --vhost itserr_vhost --partitions 3