- Use Hexagonal Architecture (Ports and Adapters) whenever possible
- Keep business logic isolated from infrastructure concerns
- Core domain logic must not depend on implementation details
- Use Dependency Injection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| clickstack: | |
| image: clickhouse/clickstack-all-in-one:latest | |
| container_name: clickstack | |
| restart: unless-stopped | |
| ports: | |
| - "8123:8123" | |
| - "8090:8080" | |
| - "4317:4317" | |
| - "4318:4318" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // +---------------------------------------------+ | |
| // | Packet | | |
| // +---------------------------------------------+ | |
| // | id (short) | payload size (short) | payload | | |
| // +------------+----------------------+---------+ | |
| using System; | |
| using System.Diagnostics; | |
| using System.Threading; | |
| using System.Threading.Tasks; |