Skip to content

Lecture 6: client-server, distributed risks, .NET choices; secrets, lock files, Dependabot - #20

Merged
Metalfacex merged 3 commits into
mainfrom
feature/lecture-6
Dec 1, 2026
Merged

Metalfacex merged 3 commits into
mainfrom
feature/lecture-6

Conversation

@Metalfacex

Copy link
Copy Markdown
Owner

ლექცია 6: კლიენტ-სერვერი, განაწილებული რისკები, .NET ტექნოლოგიები + სახლის დავალება

სავარჯიშოები (docs/architecture.md)

  • A — §8 კლიენტ-სერვერის სქემა: კლიენტები, Load Balancer, 2 ინსტანცია, Cache (Redis), MS SQL, SMTP; ისრებზე პროტოკოლი (HTTPS, TDS, RESP, SMTP) და sync/async; ახლა vs. მასშტაბირებისას.
  • B — §9 განაწილებული რისკები: ჯავშანი — CP, შეხსენება — AP; ორივეზე: რა ხდება გათიშვისას, timeout, retry, idempotency.
  • C — §10 .NET ტექნოლოგიები: Minimal API vs MVC, EF Core vs Dapper, Blazor-ის რეჟიმები vs JS frontend — 5 კრიტერიუმით, ქულებით; რენდერინგი ყველა გვერდისთვის.

კოდი

  • Idempotency: იგივე სტუდენტის იგივე მოთხოვნის გამეორება (retry, ორჯერ დაჭერა) აბრუნებს არსებულ ჯავშანს, ახალი არ იქმნება. ტესტები: Book_SameStudentRepeatsSameRequest_IsIdempotent (unit), CreateBooking_RepeatedSameRequest_IsIdempotent (API), TS-23.
  • Retry + timeout: EF Core SQL Server — EnableRetryOnFailure(3) და CommandTimeout(15).

სახლის დავალება

  • .csproj + packages.lock.json — Directory.Build.props (RestorePackagesWithLockFile, CI-ში locked mode); lock ფაილები შექმნა lockfiles.yml workflow-მ
  • appsettings-ის შაბლონი საიდუმლოებების გარეშე — appsettings.Example.json; პაროლები dotnet user-secrets-ში; Docker — .env.example; ცარიელ connection string-ზე fail fast
  • .gitignore — dotnet new gitignore + პროექტის წესები
  • Dependabot — .github/dependabot.yml (nuget ყოველ კვირა, github-actions თვეში ერთხელ)

ლოკალურად გაშვებამდე

ადმინისტრატორის/მენეჯერის ანგარიშები ახლა user-secrets-ით იქმნება (იხ. README → „გაშვება“). არსებულ ლოკალურ ბაზაში ანგარიშები უცვლელად რჩება.

Metalfacex and others added 3 commits December 1, 2026 13:26
…crets, lock files, Dependabot

- docs/architecture.md §8-§11: client-server schema (LB, cache, SMTP, protocols, sync/async),
  CAP choice + timeout/retry/idempotency for booking and reminders, .NET technology
  comparison with five criteria and rendering per page, configuration/dependencies
- Idempotent booking: repeating the same request returns the existing booking (unit + API tests)
- EF Core SQL Server: EnableRetryOnFailure(3) + CommandTimeout(15)
- No secrets in the repo: appsettings.Example.json template, dotnet user-secrets (UserSecretsId),
  docker-compose reads .env (.env.example), fail fast on empty connection string
- .gitignore from dotnet new gitignore + project rules
- Directory.Build.props: RestorePackagesWithLockFile, locked mode in CI
- .github/dependabot.yml: nuget (weekly, grouped) + github-actions (monthly)
@Metalfacex
Metalfacex merged commit 3c73838 into main Dec 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant