Building a scalable MAM system