Please enable JavaScript.
Coggle requires JavaScript to display documents.
Thinking Ahead - Coggle Diagram
Thinking Ahead
Reusable program components
Caching
Functions and Procedures
Objects
Classes
Iteration
Libraries
Modules
Advantages
Saves time and money
Improved Readability
Improves maintainability
More testing so less bugs
Types of Reuse
Calling the same subprogram
A loop
Caching
App/Browser Caching
Local copy of data
Performance - Load speed
Persistence
Lower network node
CPU Caching
L1/L2/L3 (multiple layers)
L1 fastest
Performance - Speeds up data instruction retrieval
Shorter bus to CPU internals
Super fast memory
More expensive per KB than RAM
Content Distribution Network (CDN)
e,g. Akamai
Advantages
Content copy is stored in a
topologically closer location
Faster access
Increased reliability due to less points of failure
Disadvantage
Issues
Multiple distributed copies
More security/hacker touch points
Costs more, takes more space (for "service" provider)
Which data in cache (policy)
Synchronisation
Preconditions
System Requires
True or False
Before a program starts
Inputs/Outputs
Inputs: Hardware/Software that provides data/instructions for the computer to use
Outputs: Hardware/Software that displays or uses data from code that the computer has finished processing