上一页 1 ··· 139 140 141 142 143 144 145 146 147 ··· 477 下一页
摘要: Code: import {UnauthorizedError} from 'express-jwt' function errorMiddleware(error, req, res, next) { if (res.headersSent) { next(error) } else if (er 阅读全文
posted @ 2021-08-05 20:58 Zhentiw 阅读(111) 评论(0) 推荐(0)
摘要: Jest has a test-generation feature built-in called test.each which is great, but I don’t particularly like it’s API. Instead, we’re going to use an op 阅读全文
posted @ 2021-08-05 18:51 Zhentiw 阅读(81) 评论(0) 推荐(0)
摘要: One of the most crucial things you can do when writing tests is ensuring that the error message explains the problem as clearly as possible so it can 阅读全文
posted @ 2021-08-05 18:41 Zhentiw 阅读(71) 评论(0) 推荐(0)
摘要: For example, you have an object `A`, you want to extend it and modify some prop; then create a new interface B: export interface B extends Omit<A, 'x' 阅读全文
posted @ 2021-08-05 17:58 Zhentiw 阅读(121) 评论(0) 推荐(0)
摘要: SAA Here's a quick cheat-sheet to remember all these services: EMR (Elastic Map Reduce): Big Data / Hadoop / Spark clusters on AWS, deployed on EC2 fo 阅读全文
posted @ 2021-08-05 01:52 Zhentiw 阅读(106) 评论(0) 推荐(0)
摘要: ETL: Extra data from S3 or RDS Transform data in Glue Load data into RedShift, or other Data Warehouse Craw the data Search for any field Partially ma 阅读全文
posted @ 2021-08-04 16:09 Zhentiw 阅读(115) 评论(0) 推荐(0)
摘要: Case 1: WhatIsTheTime.com Simple start Use T2 instance EIP to public access CONS: When more people come to your website, T2 instance is not enough to 阅读全文
posted @ 2021-08-04 13:53 Zhentiw 阅读(115) 评论(0) 推荐(0)
摘要: Faster than MySQL... Postgres Failover faster CRR: entire database is copied (not select tables) Load / Offload data directly from / to S3: efficient 阅读全文
posted @ 2021-08-03 02:15 Zhentiw 阅读(145) 评论(0) 推荐(0)
摘要: SAA Read Replicas can be within AZ, Cross AZ or Cross Region Replication is async, eventually consistent New connection endpoint for repliaca, need to 阅读全文
posted @ 2021-08-02 20:37 Zhentiw 阅读(99) 评论(0) 推荐(0)
摘要: SAA ElastiCache requires code changes Share user session across EC2 instances Redis has multi AZs, failover, backup SAP 阅读全文
posted @ 2021-08-02 16:57 Zhentiw 阅读(95) 评论(0) 推荐(0)
上一页 1 ··· 139 140 141 142 143 144 145 146 147 ··· 477 下一页