Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clowa/az-func-daily-quote
https://github.com/clowa/az-func-daily-quote
azure-functions terraform
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/clowa/az-func-daily-quote
- Owner: clowa
- Created: 2023-07-16T20:47:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-01T15:27:54.000Z (15 days ago)
- Last Synced: 2025-01-09T06:22:31.700Z (7 days ago)
- Topics: azure-functions, terraform
- Language: Go
- Homepage:
- Size: 9.21 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Tests](https://github.com/clowa/az-func-daily-quote/actions/workflows/run-tests.yaml/badge.svg)](https://github.com/clowa/az-func-daily-quote/actions/workflows/run-tests.yaml)
# Daily quote API
This repository contains the infrastructure and code of an Azure Function App that serves an API for quotes.
## Repository structure
- [`function`](./function/README.md): Contains the code of the Azure Function App.
- [`terraform`](./terraform/README.md): Contains the infrastructure definition of the Azure Function App.
- [`docs`](./docs/README.md): Contains general documentation about this project. Please see the `README.md` of each specific function for more detailed information.## Docs
Documentation can be found in the [`docs`](./docs/README.md) folder.
## Facts
- Average cold start time of `quotes`: ~ 4396 ms
- Average hot execution time of `quotes`: ~ 291 ms
- [Hey](https://github.com/rakyll/hey) stats:```bash
$ hey -m GET https://quotes.clowa.dev/api/quoteSummary:
Total: 38.4224 secs
Slowest: 18.2495 secs
Fastest: 4.1377 secs
Average: 7.7343 secs
Requests/sec: 5.2053Total data: 45597 bytes
Size/request: 229 bytesResponse time histogram:
4.138 [1] |
5.549 [52] |■■■■■■■■■■■■■■■■■■■■■■
6.960 [0] |
8.371 [96] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
9.782 [0] |
11.194 [0] |
12.605 [48] |■■■■■■■■■■■■■■■■■■■■
14.016 [0] |
15.427 [1] |
16.838 [0] |
18.249 [1] |Latency distribution:
10% in 4.3543 secs
25% in 4.4647 secs
50% in 7.2960 secs
75% in 11.7991 secs
90% in 11.9979 secs
95% in 12.0300 secs
99% in 18.2495 secsDetails (average, fastest, slowest):
DNS+dialup: 0.0621 secs, 4.1377 secs, 18.2495 secs
DNS-lookup: 0.0098 secs, 0.0000 secs, 0.0399 secs
req write: 0.0000 secs, 0.0000 secs, 0.0001 secs
resp wait: 7.6718 secs, 4.1376 secs, 18.0013 secs
resp read: 0.0001 secs, 0.0000 secs, 0.0007 secsStatus code distribution:
[200] 199 responses
```