So HAProxy is primalery a load balancer an proxy for TCP and HTTP. But it may act as a traffic regulator. It may also be used as a protection against DDoS and service abuse, by maintening a wide variety of statistics (IP, URL, cookie) and when abuse is happening, action as denying, redirecting to other backend may undertaken ([haproxy ddos config], [haproxy ddos])
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const mongoose = require('mongoose') | |
| const Schema = mongoose.Schema | |
| // Create a new schema for uploaded documents | |
| const DocumentUploadSchema = new Schema({ | |
| title: String, | |
| description: String, | |
| fileName: String, | |
| uploadDate: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function searchBlogByTitle(query: string, itemsPerPage: number, lastEvaluatedKey?: string): Promise<any> { | |
| const FIXED_ID_FOR_SEARCH_GSI = "1233421345223"; | |
| let params: AWS.DynamoDB.DocumentClient.QueryInput = { | |
| TableName: "Blog", | |
| IndexName: "BlogSearch", | |
| KeyConditionExpression: "fixedIdForSearchGSI = :pkv", | |
| FilterExpression: "contains(titleInLowerCase, :titleV)", | |
| ExpressionAttributeValues: { | |
| ":pkv": FIXED_ID_FOR_SEARCH_GSI, | |
| ":titleV": query.toLocaleLowerCase() |
// default exports
export default 42;
export default {};
export default [];
export default (1 + 2);
export default foo;
export default function () {}
export default class {}
export default function foo () {}