Twitter faced scaling issues as its user base grew to over 350,000 users. It addressed this through caching, partitioning its database, abuse prevention techniques, and an asynchronous, event-driven architecture. Lessons included planning for scaling from the start, optimizing databases and caching, and creating an open API to power growth.