Walk me through a code sample or a past project where you had to make specific design choices to ensure scalability and maintainability.