Network Port
Porta di rete
Una Network Port è un numero che invia il traffico a un solo servizio su un computer. TCP e UDP usano le porte.
Un altro esempio
Un frontend usa la porta 4321 e chiama un'API sulla 8000. Il proxy pubblico espone solo HTTPS sulla 443.
Parti principali
- 01Originating request
- 02Resolution or processing hop
- 03Response, timing, and failure
Usalo quando
Imposta chiaramente le porte per servizi locali, container, firewall, controlli di integrità e proxy inversi.
Non usarlo quando
Non esporre pubblicamente porte di database o di amministrazione. Separa le porte dei container dalle porte host pubblicate.
Nome usato nel codice
host:port / EXPOSE / firewall rule Prima di spedire
Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.
Outcome: Complete the task with Porta di rete (Network Port). User context: Un frontend usa la porta 4321 e chiama un'API sulla 8000. Il proxy pubblico espone solo HTTPS sulla 443. Technical concept or control: Porta di rete (Network Port). Why it fits: Imposta chiaramente le porte per servizi locali, container, firewall, controlli di integrità e proxy inversi. Do not use it when: Non esporre pubblicamente porte di database o di amministrazione. Separa le porte dei container dalle porte host pubblicate. Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary): Lo standard copre solo l'ambito elencato. Non sceglie lo stile visivo, la decisione sul prodotto o l'esempio di vocabolario. Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.
Controlla questa richiesta
Review how Porta di rete (Network Port) is used now. Definition: Una Network Port è un numero che invia il traffico a un solo servizio su un computer. TCP e UDP usano le porte. Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.