shortcuts:
TOC
NanoTwitter
search:
Implement and test the validation API
Purpose of this assignment
Practice essential skills for your success in this course and in this field
Building an API for an existing service
Design a repeatable algorithm for validating the correct operation of your service
How to run a scalability test while validating correctness
Key References
Here’s the description of the whole
nT Test Interface
Here’s the description of the
nanoTwitter Scalability Testing Protocol
Assignment
Write the code to support this new api
Run a major loader.io test on your backend
While it is running, issue a request to this validation api from your laptop
Note the output
Deliverables
Source code for your just the implementation of the required code zipped. (In other words just one or two source files.)
Explanation of how the code will validate the correct behavior of the backend
Log of the result of making the call to the api on your laptop
Comments, Context and Hints
It is very easy to introduce bugs as you optimize your system to scale to large numbers
Bugs that cause exceptions are easy to catch, they will show up in your logs
Bugs that lead to incorrect results are more difficult to sense
Types of bugs:
Some tweets of a followed user don’t show up on the follower’s timeline
Some tweets show up on the wrong other users timeline
Some tweets are lost altogether, e.g. they went into the cache but not the database
And more of similar types
Intro
Cosi105 - Scalability 2022 Syllabus
List of lectures
nanoTwitter
Homeworks
Lectures
Web Apps + Sinatra
Welcome
What is Scalability?
Cosi166 Quick Bullets
Intro to Sinatra
Sinatra and Twitter
NanoTwitter introduced
nano Twitter
Starting to think about scaling
Scaling at Hubspot
Service Oriented Architecture
Deploying to the Cloud
Scalable Service design
Scalability, continued
Testing in the world of SOA
Scaling Patterns
Testing Scalability
Tuning for Scale
Logging
Caching
Database Tuning 1
Database Tuning 2
Concurrency 1
Concurrency 2
Queueing
SOA + µservices
Software Engineering
Scalability Runoff 1
Last class!
Background
Technical Presentations
Misc Links and Resources