- add: session-service

- move: redis_cache from database service to utils so it can be reused
- update: redis_cache set function to allow creating a key without a lifetime
- update: services to use the new get_or_generate_service_id function
This commit is contained in:
2024-12-20 14:43:25 -05:00
parent 07e991fbdc
commit 3c1f8c40d6
16 changed files with 291 additions and 10 deletions

View File

@@ -34,7 +34,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let health_check_url = format!("http://{}:{}/health", service_address, health_port);
// Register service with Consul
let service_id = consul_registration::generate_service_id();
let service_id = consul_registration::get_or_generate_service_id();
let tags = vec!["version-1.0".to_string()];
let meta = HashMap::new();
consul_registration::register_service(