Skip to content
Open

hw-8 #21

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
23d9e22
Test 1: version 0/0/1
21092004Goda Sep 24, 2025
64be8f4
Test 1: version 0/0/2
21092004Goda Sep 24, 2025
aceea3a
Test 2: version 0/0/1
21092004Goda Sep 25, 2025
52997a2
Test 2: version 0/0/2
21092004Goda Sep 25, 2025
4e35010
remove local data from repo
21092004Goda Oct 2, 2025
9b77bf1
remove local data from repo
21092004Goda Oct 2, 2025
c154f68
HW-1 is Done.
21092004Goda Oct 2, 2025
11782cb
HW-2 is Done.
21092004Goda Oct 2, 2025
9c76cb1
HW-3 is Start.
21092004Goda Oct 2, 2025
58e3c14
refactoring: refactored di in spring
Oct 2, 2025
68b9ff6
refactoring: fixed wildcard imports and reformate code
Oct 2, 2025
28b304a
Merge pull request #9 from ByBinPy/feature/hw-3-ivm
ByBinPy Oct 2, 2025
74a87c3
hotfix: fixed bean resolution in constructor
Oct 2, 2025
86e0d3c
feature: added counters
Oct 3, 2025
3970682
feature: added counters
Oct 3, 2025
21e6f81
feat: new dashboards for active tasks
Oct 10, 2025
6aabbfd
fix: unused imports
Oct 10, 2025
2a456a1
fix: fixed dashboard description and added metric for queue monitoring
Oct 16, 2025
8ea5050
Merge pull request #11 from ByBinPy/feature/hw-3-active-tasks-dashboards
ByBinPy Oct 16, 2025
6cb3047
feature: degraded rps limiter value by one for test on remote
Oct 16, 2025
4a7f689
feature: added ordered queue for payment service
Oct 16, 2025
eca925e
feature: added priority queue
Oct 16, 2025
2629c33
fix: fixed priority queue
Oct 16, 2025
5af096e
fix: fixed queue by using paymentExecutor
Oct 17, 2025
600bec6
fix: fixed queue by using paymentExecutor and using priority queue
Oct 17, 2025
fb3b5c9
-- fix: Add response 429.
21092004Goda Oct 22, 2025
d10d90b
fix: fixed semaphore and rate limiter positions and did some refactoring
Oct 23, 2025
fff8ee7
Merge pull request #14 from ByBinPy/feature/high-load-kuro-hw-4
ByBinPy Oct 23, 2025
4d748e0
-- fix: Refactor lab 5 task 2
21092004Goda Nov 8, 2025
d84a145
-- fix: Lab-5-2 temp fix
21092004Goda Nov 11, 2025
e5c6715
-- fix: temp 2
21092004Goda Nov 11, 2025
e2054fc
-- fix: temp 3
21092004Goda Nov 11, 2025
8467110
-- fix: temp 4
21092004Goda Nov 11, 2025
bde0f58
-- fix: temp 5
21092004Goda Nov 11, 2025
3d72e86
-- fix: add gitignor
21092004Goda Nov 13, 2025
6d1a976
-- fix: lab-5-2 is done
21092004Goda Nov 13, 2025
eb46f2f
-- feat: done lab 5 - 3
21092004Goda Nov 14, 2025
dcc34ed
-- feat: Add lab-8 task
21092004Goda Nov 14, 2025
fdcf413
Update OnlineShopApplication.kt
ByBinPy Dec 5, 2025
95cf1e0
Update OnlineShopApplication.kt
ByBinPy Dec 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 47 additions & 35 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,35 +1,47 @@
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
./http-client.env.json

### NetBeans ###
/nbproject/private/

/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

### grafana ###
/grafana/

### prometheus ###

/prometheus/

### confidential data ###

http-client.env.json



### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/

/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN mvn dependency:go-offline
COPY src src
RUN mvn package

FROM openjdk:17-jdk-slim
FROM eclipse-temurin:17-alpine-3.22

COPY --from=build /app/target/*.jar /high-load-course.jar

Expand Down
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Template for the HighLoad course

This project is based on [Tiny Event Sourcing library](https://github.com/andrsuh/tiny-event-sourcing)

### Run PostgreSql

This example uses Postgres as an implementation of the Event store. You can see it in `pom.xml`:

```
Expand All @@ -12,7 +14,8 @@ This example uses Postgres as an implementation of the Event store. You can see
</dependency>
```

Thus, you have to run Postgres in order to test this example. Postgres service is included in `docker-compose` file that we have in the root of the project.
Thus, you have to run Postgres in order to test this example. Postgres service is included in `docker-compose` file
that we have in the root of the project.

# More comprehensive information about the course, project, how to run tests is here:

Expand All @@ -21,19 +24,25 @@ https://andrsuh.notion.site/2595d535059281d8a815c2cb3875c376?source=copy_link
https://andrsuh.notion.site/2625d5350592801aaf88c7c95302d10c?source=copy_link

### Run the infrastructure

Set of the services you need to start developing and testing process is following:
- Bombardier - service that is in charge of emulation the store's clients activity (creates the incoming load). Also serves as a third-party payment system.

- Bombardier - service that is in charge of emulation the store's clients activity (creates the incoming load). Also
serves as a third-party payment system.
- Postgres DBMS
- Prometheus + Grafana - metrics collection and visualization services

You can run all beforementioned services by the following command:

```
docker compose -f docker-compose.yml up
```

### Run the application
To make the application run you can start the main class `OnlineShopApplication`. It is not being launched as a docker contained to simplify and speed up the devevopment process as it is easier for you to refactor the application and re-run it immediately in the IDE.

To make the application run you can start the main class `OnlineShopApplication`. It is not being launched as a docker
contained to simplify and speed up the devevopment process as it is easier for you to refactor the application and
re-run it immediately in the IDE.

### If you want to pull changes from the main repository into your fork

Expand Down
Loading