In YugabyteDB, there are two main services: the YB-TServer service responsible for all database-level operations and the YB-Master service that maintains cluster consistency by propagating cluster-level operations and storing metadata. The tables and indexes in both services are split into tablets, which are replicated based on the cluster-level replication factor (RF) value, forming RAFT groups with a single leader and multiple followers. A YB-Master server has master-leaders and master-followers that receive, apply, and acknowledge changes, ensuring high availability. The tables are distributed across nodes in the cluster, with each node hosting more than one tablet-leader and tablet-follower for its assigned data.