# SignalR 및 실시간 (.NET) > SignalR Hub, WebSocket, Server-Sent Events, 연결 관리, 확장, 성능 - 22 면접 질문 - Senior - [면접 질문: .NET](https://sharpskill.dev/ko/technologies/dotnet/interview-questions.md) ## 1. SignalR에서 Hub란 무엇인가요? **답변** Hub는 서버와 연결된 클라이언트 간의 중앙 통신 지점 역할을 하는 클래스입니다. 서버에서 클라이언트 측 메서드를 호출하거나 그 반대로 호출할 수 있습니다. Hub는 연결, 연결 해제, 연결된 클라이언트 간의 메시지 라우팅을 자동으로 처리합니다. SignalR이 제공하는 Hub 클래스를 상속하며 클라이언트가 호출할 수 있는 공개 메서드를 노출합니다. ## 2. SignalR에서 강력한 형식의 Hub(strongly-typed Hub)를 만드는 방법은? **답변** 강력한 형식의 Hub는 Hub를 상속하며 여기서 T는 클라이언트 메서드를 정의하는 인터페이스입니다. 이를 통해 Clients.All, Clients.Caller 등을 통해 클라이언트 메서드를 호출할 때 IntelliSense와 형식 검사를 사용할 수 있습니다. 인터페이스는 서버가 클라이언트에서 호출할 수 있는 메서드의 계약을 정의합니다. 이 접근 방식은 컴파일 시점에 형식 문제를 잡아내어 런타임 오류를 줄여줍니다. ## 3. SignalR Hub에서 Clients.All과 Clients.Others의 차이점은 무엇인가요? **답변** Clients.All은 호출을 트리거한 클라이언트를 포함하여 연결된 모든 클라이언트에 메시지를 보냅니다. Clients.Others는 호출하는 클라이언트를 제외하고 다른 연결된 클라이언트에만 메시지를 보냅니다. Clients.Others를 사용하는 것은 발신 클라이언트가 자신의 메시지를 받을 필요가 없는 알림 브로드캐스트와 같은 시나리오에서 유용합니다. Clients.Caller는 호출하는 클라이언트에만 보낼 수 있습니다. ## 19개 추가 질문 이용 가능 - 클라이언트의 일부에게 메시지를 보내기 위해 SignalR에서 그룹을 관리하는 방법은? - SignalR이 지원하는 전송 방식은 무엇이며 어떤 순서로 협상되나요? 무료로 가입하기: https://sharpskill.dev/ko/login ## 기타 .NET 면접 주제 - [C# 기초](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/csharp-basics.md): 25개 질문, Junior - [LINQ & Delegates](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/csharp-linq-delegates.md): 20개 질문, Junior - [C# 언어 핵심 요소](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/csharp-language-essentials.md): 15개 질문, Junior - [ASP.NET Core 기초](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/aspnet-core-fundamentals.md): 18개 질문, Junior - [ASP.NET Core 요청 수명 주기](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/aspnet-core-request-lifecycle.md): 20개 질문, Junior - [Configuration & Settings](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/configuration-settings.md): 20개 질문, Junior - [애플리케이션 라이프사이클](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/application-lifecycle.md): 20개 질문, Junior - [Dependency Injection](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/dependency-injection.md): 24개 질문, Mid-Level - [Entity Framework Core](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/entity-framework-core.md): 25개 질문, Mid-Level - [Minimal APIs](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/minimal-apis.md): 18개 질문, Mid-Level - [Web API 개발](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/web-api-development.md): 22개 질문, Mid-Level - [ASP.NET Core의 Async](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/async-aspnet-core.md): 20개 질문, Mid-Level - [Authentication & Authorization](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/authentication-authorization.md): 18개 질문, Mid-Level - [HttpClient & 네트워킹](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/httpclient-networking.md): 20개 질문, Mid-Level - [JSON 직렬화](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/json-serialization.md): 20개 질문, Mid-Level - [Entity Framework Core 고급](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/ef-core-advanced.md): 25개 질문, Mid-Level - [C# 고급 기능](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/csharp-advanced-features.md): 20개 질문, Mid-Level - [Clean Architecture](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/clean-architecture.md): 20개 질문, Mid-Level - [Logging, Monitoring & Observability](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/logging-monitoring.md): 22개 질문, Mid-Level - [단위 테스트와 xUnit](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/unit-testing-xunit.md): 20개 질문, Mid-Level - [통합 테스트](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/integration-testing.md): 18개 질문, Mid-Level - [Docker & Containerization](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/docker-containerization.md): 16개 질문, Mid-Level - [NuGet 패키지 관리](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/nuget-package-management.md): 16개 질문, Mid-Level - [Memory Management & GC](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/memory-management-gc.md): 22개 질문, Senior - [리액티브 프로그래밍](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/reactive-programming.md): 24개 질문, Senior - [Async/await 및 패턴](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/async-await-patterns.md): 26개 질문, Senior - [.NET 디자인 패턴](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/dotnet-design-patterns.md): 24개 질문, Senior - [성능 최적화](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/performance-optimization.md): 22개 질문, Senior - [보안 및 모범 사례](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/security-best-practices.md): 24개 질문, Senior - [마이크로서비스 아키텍처](https://sharpskill.dev/ko/technologies/dotnet/interview-questions/microservices-architecture.md): 25개 질문, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/ko/technologies/dotnet/interview-questions/signalr-realtime