App Dev Domain Flashcards
I: “ERROR ESTABLISHING CONNECTION TO DATABASE”
Check Database Connection Credentials
Ping the DB from the Application server through the port on which the DB was configured
Check Application logs
Possible Authentication issue
Possible DB maintenance
Check if the connection pool is up and running
Look at more granular stuff - is the driver working - not corrupt
I: WEB APPLICATION FRAMEWORKS
Ruby on Rails
Django
Angular
ASP.NET
I: JSON
JSON is JavaScript Object Notation. Its format is often used for serializing and transmitting structured data over a network connection.
I: SCRIPTED LANGUAGE
A scripting language is a programming language for a runtime system that automates the execution of tasks. Scripting languages are usually interpreted at runtime rather than compiled.
- Perl
- PHP
- Python
- Ruby
I: COMPILER
Compiler is a software program that transforms high-level source code into a low-level object code in a machine language, which can be understood by the processor.
I: FUNCTIONS
is used when a value is returned to the calling routine
I: DEADLOCKS
Deadlock occurs when the waiting process is still holding on to another resource that the first needs before it can finish.
I: LOOSELY COUPLED ARCHITECTURE
Loosely coupled architectures (aka Microservices) are lean, with a single responsibility, without many dependencies, allowing teams to work independent, deploy independent, fail and scale independent, increasing business responsiveness.
I: DISTRIBUTED and SCALABLE SYSTEM
Avoid the single point of failure.
Scale horizontally, not vertically.
View your application as a service with an API first.
Cache everything, always.
Design for maintenance and automation.
Strive for statelessness.
Be prepared for failure.
I: THREAD POOL
is a software design pattern for achieving concurrency of execution in a computer program.
I: SOAP
SOAP (Simple Object Access Protocol) is a message protocol that allows distributed elements of an application to communicate. It is an integral part of the service-oriented architecture (SOA) and the Web services specifications associated with SOA.
I: OPTIMIZE CODE
Use a Profiler
Compiler Optimizations
Tuning the Code
Collect common subexpressions.
Replace expensive operations by Cheap ones.
Eliminate Loops
Cache frequently used values
Rewrite in a lower-level language
Include Code Inspection into your Governance Models
I: QUEUES
A queue is like a buffer. You can put messages into a queue, and you can retrieve messages from a queue.
Redis RabbitMQ ActiveMQ Amazon MQ Amazon SQS
I: PUBLISH SUBSCRIBE PATTERN
its where publishers do not program the messages to be sent directly to specific receivers, called subscribers, but instead categorize published messages into classes without knowledge of which subscribers, if any, there may be.
I: REST
is where server-side data are made available through representations of data in simple formats.
This format is usually JSON or XML but could be anything.