Apache Kafka
Components & Dependencies

Intro

Logical decomposition is a representation of the organization of the main source code, where every and each file is put in exactly one logical component.

  • A software system can have one or more logical decompositions.
  • A logical decomposition can be defined in two ways in Sokrates.
  • First approach is based on the folders structure. Components are mapped to folders at defined folder depth relative to the source code root.
  • Second approach is based on explicit definition of each component. In such explicit definitions, components are explicitly named and their files are selected based on explicitly defined path and content filters.
  • A logical decomposition is considered invalid if a file is selected into two or more components.This constraint is introduced in order to facilitate measuring of dependencies among components.
  • Files not assigned to any component are put into a special "Unclassified" component.
Learn more...
Logical Decompositions Overview

Analyzed system has 1 logical decomposition:

  • primary (9 components)
Logical Decomposition #1: PRIMARY
The decompositions is based on folder structure at level 1 (relative to the source code root).
Components
The "primary" logical decomposition has 9 components.
  • 1,964 files, 212,448 lines of code (76.7% vs. main code).
  • "clients" is biggest, containing 32.03% of code.
  • "log4j-appender" is smallest, containing 0.14% of code.


clients68048 LOC (24%) 799 files
streams50711 LOC (18%) 512 files
core45987 LOC (16%) 222 files
connect29802 LOC (10%) 282 files
tools10819 LOC (3%) 107 files
generator4783 LOC (1%) 21 files
jmh-benchmarks1581 LOC (<1%) 14 files
examples425 LOC (<1%) 6 files
log4j-appender292 LOC (<1%) 1 files
Alternative Visuals
Dependencies
Dependencies among components are static code dependencies among files in different components.
  • Analyzed system has 9 links (arrows) between components.
  • The number on the arrow represents the number of files from referring component that depend on files in referred component.
  • These 9 links contain 502 dependencies.
G clients clients tools tools tools->clients 37 core core core->clients 2 streams streams streams->clients 284 connect connect streams->connect 1 generator generator jmh-benchmarks jmh-benchmarks jmh-benchmarks->clients 14 examples examples examples->clients 5 log4j-appender log4j-appender log4j-appender->clients 1 connect->clients 156 connect->tools 2




Show more details about dependencies...




2020-09-11 18:57