Skip to content

Instantly share code, notes, and snippets.

View JenHsuan's full-sized avatar

Sean Hsieh JenHsuan

View GitHub Profile
<router-outlet />
{
...,
"eslint.options": { "overrideConfigFile": "path/eslint.config.mjs" },
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
}
...
import stylisticTs from '@stylistic/eslint-plugin-ts';
import stylisticJs from '@stylistic/eslint-plugin-js';
import stylisticJsx from '@stylistic/eslint-plugin-jsx';
import stylisticPlus from '@stylistic/eslint-plugin-plus';
import parserTs from '@typescript-eslint/parser';
const stylisticConfigs = [
{
plugins: {
import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";
import { defineConfig } from "eslint/config";
import next from "@next/eslint-plugin-next";
const baseConfigs = [
{
files: ["**/*.{mjs,cjs,ts,mts,cts,jsx,tsx}"],
ALB NLB GWLB
Support protocol Layer 7 Layer 4 Layer 3
Latancy Higher than NLB Lower than ALB -
Cross-zone lb default Enabled Disabled Disabled
Provide DNS? o x x
Provide fixed IP? x o x
Use case micro services/container-based apps/HTTP/HTTPS SSH -
Support multiple SSL? o (need SNI) o (need SNI)
Cluster Spread Partition
Pros great networking/low-latency Reduce simultaneous failure -
Cons In single AZ limit to 7 per AZ per group Up to 100 of EC2 instances
Use case HPC workloads/node-to-node communication maximize the high availability Distributed ETL/HDFS/HBase/Cassandra/Kafka
S3 File Gateway Volume Gateway Tape Gateway
Supported Protocols NFS/SMB iSCSI/SMB/NTFS -
Transfer to S3? standard/IA/One Zone-IA/Intelligent - -
Backup to S3 - use iSCSI protocol -
Support AD? o o x
Modes x Cached volumes/Stored volumes x
Compliance Mode Governance Mode Legal Hold
Feature Versions can’t be overwritten or deleted Version and settings can’t overwrite/delete/alter Protect the object indefinitely (independent from retention period)
Permission? x Some users Using S3:PutObjectLegalHold IAM permission
Service Feature
Glue Job Bookmarks prevent re-processing old data
Glue Elastic Views Combine and replace data across multiple data source stores using `SQL`
Glue DataBrew clean and normalize data using `pre-built` transformations
Glue Studio new GUI to create/run/and monitor `ETL` jobs in `Glue`
Glue Streaming ETL compatible with Kinesis Data Streaming/Kafka/MSK (managed Kafka)
Glue Triggers allows you to automate the execution of Glue Jobs/Crawlers/or Workflows based on certain conditions
gp2/gp3 (SSD) io1/io2 (SSD) st1(HDD) sc1(HDD)
Feature most cost-effective storage critical applications with sustained IOPS frequently accessed/throughput-intensive Lowest-cost HDD volume designed for frequently accessed
Use Case low latency great for database workloads big data/log pprocessing Scenario where the lowest cost is important
Can be boot volumes o o x x
EBS multi-attach feature x o x x
Capacity 1GB ~ 1TB - - -