Mirim Pal said..
Database is always bottleneck for large we apps. So don’t use database as a processing layer. Apply some indexing like technique to provide data to API Calls. Keep your data in separate indexing files not in database. All the best twitter engineers.