Skip to content

WebChads/SmsService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmsService

Cloning the repo

Clone this repo:

git clone [email protected]:WebChads/SmsService.git
cd ./SmsService

Run docker containers

Run zookeeper docker image:

sudo docker compose up zookeeper -d

Run kafka docker images:

sudo docker compose up kafka-ui kafka-1 -d

Set application config path:

export CONFIG_PATH=./configs/appsettings.json

Run the application

go run ./cmd/app/main.go

How it works from kafka point of view

Kafka producer

+--------------+                                      +-------------+
| Auth Service | <- Consume   [sms code]   <- Produce | Sms Service |
+--------------+                                      +-------------+

Kafka consumer

+--------------+                                      +-------------+
| Auth Service | Produce -> [phone number] Consume -> | Sms Service |
+--------------+                                      +-------------+

About

This service interacts with authentication service to send sms-code on the given phone number

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •