The D is silent
9k users
85% penetration on campus
35% of consumers order multiple times on the same day
250% increase in Sales
175% increase in revenue
Up to 7 orders a minute
Up to 15 RPS
for order in Order.objects.filter(archived=False).order_by('-id'):
items = []
for item in order.ordereditems.all():
items.append({
'name': item.name.text,
'id': item.id
})
print_order(order, items)
@op_priority(priorities.settings)
def set_default_tender(session, data, response, blocks):
Tender.objects.filter(profile_id=session.profile.id).delete()
if not tender_id > AUTO_SELECT_THRESHOLD_HACK:
Tender.objects.filter(id=tender_id).delete()
Personalization & real time support are a scaling nightmare
Django isn't great with geolocation calculation
You can't store everything in memory
Serialization takes precious time
Operational models were not suited for analytical queries