西维蜀黍

【Architecture】Fault Tolerance

  ...


【Architecture】Replication

Replication

Replication in computing can refer to:

Replication in space or in time is often linked to scheduling algorithms.

  ...


【Distributed System】Data Flow

Dataflow Through Databases

  ...


【Engineering】How to Write Code

  ...


【Engineering】Logging

Log Levels

The log level is used to denote the severity of each event in the system. In most logging frameworks, the following levels are available.

  • FATAL: denotes very severe error events that will presumably lead the application to abort. Usually, these can end up in catastrophic failures.
  • ERROR: denotes error events that might still allow the application to continue running, with reduced capabilities in the affected paths.
  • WARN: denotes less-harmful events than errors. Usually, they do not lead to any degradation of capabilities or complete failure of the application. However, they are still red flags and must be investigated.
  • INFO: denotes the important event banners and informational messages in the application behaviour.
  • DEBUG: denotes specific and detailed information, mainly used for debugging purposes. These logs help us step through the code.
  • TRACE: denotes most low-level information like stack traces of code to provide the most information on a certain event/context. These logs help us inspect the variable values and full error stacks.
  ...