Can you design software systems?
Jump to turn (6)
- 1Can you design software systems?
- 2We’d like to generate a URL shortener so that people can share links in a more f
- 3Can you define the REST API please?
- 4What database would you use to store the data?
- 5Please design the database tables for the url shortener using a relational datab
- 6I appreciate the effort but this went out of scope.
- User
Can you design software systems?
Assistant
I can certainly try to help you with that. Please describe your requirements and constraints, and I’ll do my best to meet your needs.
- User
We’d like to generate a URL shortener so that people can share links in a more friendly way and save on characters.
It’s an anonymous service - no user accounts
- Given a URL I’ll receive a shortened URL back
- If someone visits our shortened URL, they be redirected to the full URL
- Given a url that already exists in the system, give the same shortened url back; for example, if person A shortens a url for “www.nytimes.com”, and then later person B tries to shorten that same URL, they will both receive the same shortened URL.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.