AWS Cloud Developer: Fullstack - Development Flashcards
What is a server?
A computer connected to a network
What is a cloud server?
A computer connected to a network, managed by someone else
What is an endpoint?
The place that APIs send requests and where the resource lives, is called an endpoint.
Best practices for designing endpoints
- Only use nouns and not verbs
- API’s should be versioned - {{host}}/api/v0/cars/5
- Lists should be paginated to limit the amount of data sent - {{host}}/api/v0/cars/?offset=40&limit=10
- All responses should attempt to use status codes
- All responses should include data format eg.) application/json
- Error payloads should include information about what went wrong
Two main kinds of API’s
REST and GraphQL
Consumable API
APIs that are accessible to those outside of the organization, for example, a consumable API allows programmers to search Tweets or Yelp reviews.
What are the three Main git branches for development
Master (production)
Stage (Testing Server)
Dev (Development)
Which git branch do developers work on?
Developers fork commits from the Dev branch to work on individual features and make pull requests to have their changes merged with the dev branch.
RAM
RAM (Random Access Memory): Data can be accessed quickly, but is erased once the server restarts. It may be okay to use RAM when prototyping, and later replace it with a database.
Relational Database
Relational Database: can store at scale, improve search runtime, and maintain relationships between data fields. We recommend using a database for storing data.
Race Condition
Race Condition: When an application’s behavior is dependent on other uncontrollable events. This is an issue with storing data on disks or RAM of multiple servers.
Hard Drive Disk
Hard Drive Disk: Data remains after server restarts, but is specific to that server (not shared across servers).
Why not save data in a file?
Does not scale well. Race conditions (inconsistency), write speed, read speed, search speed.
Why not save data in a file?
Does not scale well. Race conditions (inconsistency), write speed, read speed, search speed.