Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Message size/us133166/add message size parameter #78

Merged
merged 9 commits into from
Jan 31, 2024

Conversation

kaylarizi
Copy link
Collaborator

Add message size parameter to the analyze request, generated message accordingly and send to nginx.

api/src/api/analyze_api.py Show resolved Hide resolved
api/src/services/analyze_service.py Show resolved Hide resolved
curl/src/curl/curl.service.ts Show resolved Hide resolved
export class MessageGenerator {
static generate(sizeInBytes: number) {
// Generate the string by repeating the character 'a'
return 'a'.repeat(sizeInBytes); }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be nicer than 'aaaaaaaaaaaaaa' but not required
message = ''.join(random.choices(string.ascii_uppercase +
string.digits, k=N))

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaving it like this because there is no simple lib in nest.js that does this.

@mikekcs mikekcs self-requested a review January 31, 2024 12:22
@kaylarizi kaylarizi merged commit d64a8d1 into main Jan 31, 2024
4 checks passed
@kaylarizi kaylarizi deleted the messageSize/US133166/add_message_size_parameter branch February 18, 2024 20:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Curl] Add message size parameter [API] Add message_size parameter
2 participants