Skip to content

Богачев Матвей Лаб. 2 Группа 6511#99

Open
Matosik wants to merge 45 commits intoitsecd:mainfrom
Matosik:Lab2
Open

Богачев Матвей Лаб. 2 Группа 6511#99
Matosik wants to merge 45 commits intoitsecd:mainfrom
Matosik:Lab2

Conversation

@Matosik
Copy link
Copy Markdown

@Matosik Matosik commented Apr 9, 2026

ФИО: Богачев Матвей
Номер группы: 6511
Номер лабораторной: 2
Номер варианта: 3
Краткое описание предметной области: Транспортное средство
Краткое описание добавленных фич:

  • Настроена оркестрация на запуск нескольких реплик сервиса генерации
  • Реализован ApiGateWay на основе Ocelot
  • Алгоритм балансировки - Query Based (id%count service)

-класс транспортное средство
- изменена информация о студенте на странице
Удалены пустые строки которые выжигают глаза, изза которых весь мир рухнет
summary
@github-actions github-actions bot added In progress Код в процессе проверки Lab 2 Лабораторная №2. Балансировка нагрузки labels Apr 9, 2026
@github-actions github-actions bot requested a review from danlla April 9, 2026 14:01
Comment thread ApiGateway/Program.cs Outdated
Comment thread ApiGateway/ocelot.json
Comment thread Aspire.AppHost/AppHost.cs Outdated
Comment thread Aspire.AppHost/AppHost.cs Outdated
Comment thread Client.Wasm/Components/StudentCard.razor Outdated
@Matosik Matosik requested a review from danlla April 14, 2026 19:25
Comment thread ApiGateway/ocelot.json Outdated
@@ -0,0 +1,21 @@
{
"Generators": [ "generator-1", "generator-2", "generator-3" ],
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Здесь используется generator и начинается с 1

Comment thread Aspire.AppHost/AppHost.cs

for (var i = 0; i < 3; i++)
{
var generator = builder.AddProject<Projects.Server>($"back-{i}")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

А здесь back и начинается с 0

В итоге сейчас приложение не работает

Comment thread Aspire.AppHost/AppHost.cs
for (var i = 0; i < 3; i++)
{
var generator = builder.AddProject<Projects.Server>($"back-{i}")
.WithEndpoint("https", endpoint => endpoint.Port = 8090+i)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Еще порт переопределяется у https

Comment thread ApiGateway/Program.cs Outdated
for (var i = 0; i < generators.Length; i++)
{
var serviceName = generators[i];
var url = builder.Configuration[$"services:{serviceName}:http:0"];
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

А тут http

@Matosik Matosik requested a review from danlla April 15, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

In progress Код в процессе проверки Lab 2 Лабораторная №2. Балансировка нагрузки

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants