the-algorithm/unified_user_actions/client/src/main/scala/com/twitter/unified_user_actions/client/config/Clusters.scala
twitter-team 617c8c787d Open-sourcing Unified User Actions
Unified User Action (UUA) is a centralized, real-time stream of user actions on Twitter, consumed by various product, ML, and marketing teams. UUA makes sure all internal teams consume the uniformed user actions data in an accurate and fast way.
2023-04-14 16:45:37 -05:00

25 lines
739 B
Scala

package com.twitter.unified_user_actions.client.config
sealed trait ClusterConfig {
val name: String
val environment: EnvironmentConfig
}
object Clusters {
/*
* Our production cluster for external consumption. Our SLAs are enforced.
*/
case object ProdCluster extends ClusterConfig {
override val name: String = Constants.UuaKafkaProdClusterName
override val environment: EnvironmentConfig = Environments.Prod
}
/*
* Our staging cluster for external development and pre-releases. No SLAs are enforced.
*/
case object StagingCluster extends ClusterConfig {
override val name: String = Constants.UuaKafkaStagingClusterName
override val environment: EnvironmentConfig = Environments.Staging
}
}