Ractor into repository interface pattern