JS Concepts & APIs
Day 2 Across The Tiers with [Link]
File System
I/O
File System
I/O
Node APIs
File System
I/O
Node APIs
Patterns for Managing
Async
File System
I/O
Node APIs
Patterns for Managing
Async
Accessing Data
Sources
File System
I/O
Node APIs
Patterns for Managing
Async
Accessing Data
Sources
Architectur
e
File System
I/O
Node APIs
Patterns for Managing
Async
Accessing Data
Sources
Architectur
e
[Link]
Framework
File System
I/O
Node APIs
Patterns for Managing
Async
Accessing Data
Sources
Architectur
e
[Link]
Framework
RESTful API
Filesystem I/O
Filesytem - Basic I/O
Filesystem - Synchronous vs. Asynchronous
Filesystem - Synchronous vs. Asynchronous
how-to sample
Day 2 Quiz 1
Fork & Answer Questions
Async Patterns
Callbacks
Node API - Callbacks
Node API - Callbacks
Node API - Callbacks
Node API - Callbacks, The Node Way
Node API - Callbacks, The Node Way
Promises
fulfilled
rejected
pending
settled
Node API - Promises Instantiation
Node API - Promises Usage
how-to sample
Day 2 Quiz 2
Fork & Answer Questions
Node APIs
Node API - Event Emitter
push notifications
SSE or Server Sent Events
web sockets
Web Sockets
primus
realtime framework
Node API - [Link]
Buffers
Buffers
JavaScript doesnt
speak binary data.
Filesystem
Raw data is stored in
instances of the
Buffer Class.
TCP Streams
Manipulates, creates,
and consumes octet
streams.
new Buffer(size)
new Buffer(array)
new Buffer(buffer)
new Buffer(str[, encoding])
for 7 bit ASCII data only. This encoding
'ascii
method is very fast, and will strip the
'
'utf8 high bit if set.
'
'utf16l
e'
'ucs2
'
'base64
'
'binar
y'
'hex
'
'ascii
'
Multibyte encoded Unicode characters.
'utf8 Many web pages and other document
'
formats
use
UTF-8.
'utf16l
e'
'ucs2
'
'base64
'
'binar
y'
'hex
'
'ascii
'
'utf8
2 or 4 bytes, little endian encoded
'
'utf16l Unicode characters. Surrogate pairs
e'
(U+10000 to U+10FFFF) are
'ucs2
supported.
'
'base64
'
'binar
y'
'hex
'
'ascii
'
'utf8
'
'utf16l
e'
'ucs2
Alias of 'utf16le'.
'
'base64
'
'binar
y'
'hex
'
'ascii
'
'utf8
'
'utf16l
e'
'ucs2
'
'base64
Base64 string encoding.
'
'binar
y'
'hex
'
'ascii
'
'utf8
'
'utf16l
e'
'ucs2
A
way
of
encoding
raw
binary
data
into
'
'base64strings by using only the first 8 bits of
each character. This encoding method
'
'binar is deprecated and should be avoided in
y'
favor
of
Buffer
objects
where
possible.
'hex
This
encoding
will
be
removed
in
'
future versions of Node.
'ascii
'
'utf8
'
'utf16l
e'
'ucs2
'
'base64
'
'binar
y'
'hex Encode each byte as two
'
hexadecimal characters.
Streams
Node API - Streams
Node API - Streams
Node API - Streams
how-to sample
Day 2 Quiz 3
Fork & Answer Questions
Data Sources
Connectors & Sources
how-to sample
data structures
Alternates A.K.A. NoSQL
key/value
graph
time series
database architecture
Day 2 Quiz 4
Fork & Answer Questions
Architecture
event loop
node clustering
Load Balancing
Manually
Load Balancing
AWS Example
Load Balancing
AWS Example Expanded
Automated Testing
Message Queues & Cache Services
[Link] Middleware Pattern
how-to sample
Day 2 Quiz 5
Fork & Answer Questions
Express
Framework
MVC
Model
View
Controller
SPAs
APIs
[Link] - Installing & Project Setup
[Link] - Application Generator
[Link] - Application Generator
[Link] - Application Generator
how-to sample
Day 2 Quiz 6
Fork & Answer Questions
RESTful APIs
What is an API?
In web parlance an API is a simple interface
that will perform a particular action.
SOA Revisited?
Service Oriented Architecture often comes to
mind with the correlation to micro-services
and related API driven design ideas.
HTTP Verbs
GET
POST
PUT
UPDATE
End Points
GET /tickets - Retrieves a list of
tickets
GET /tickets/12 - Retrieves a specific
ticket
POST /tickets - Creates a new
ticket
PUT /tickets/12 - Updates ticket
#12
PATCH /tickets/12 - Partially updates
ticket #12
DELETE /tickets/12 - Deletes ticket
#12
how-to sample
Day 2 Quiz 7
Fork & Answer Questions