Skip to content

Instantly share code, notes, and snippets.

@kkirsanov
Last active January 19, 2017 09:22
Show Gist options
  • Save kkirsanov/dbb4f18b61754fa13a9f33e49a98a56f to your computer and use it in GitHub Desktop.
Save kkirsanov/dbb4f18b61754fa13a9f33e49a98a56f to your computer and use it in GitHub Desktop.
1 писатель пишет числа от 0 до 99 в 1 топик с 4-я партициями, 2 читателя в 1 группе читают одновременно
число(что слал продюсер)-оффсет(смешение в партиции)-партиция
0-0-3
1-0-2
5-1-2
7-2-2
10-3-2
6-1-3
8-2-3
9-3-3
12-4-2
19-5-2
20-6-2
15-4-3
17-5-3
21-7-2
26-8-2
27-9-2
28-10-2
22-6-3
23-7-3
24-8-3
30-9-3
34-11-2
41-12-2
33-10-3
38-11-3
44-13-2
46-14-2
51-15-2
43-12-3
47-13-3
52-16-2
61-17-2
58-14-3
67-18-2
69-19-2
71-20-2
66-15-3
70-16-3
74-21-2
78-22-2
73-17-3
75-18-3
81-19-3
83-23-2
91-24-2
82-20-3
84-21-3
89-22-3
92-25-2
93-26-2
96-27-2
97-28-2
98-29-2
94-23-3
95-24-3
99-25-3
3-0-1
4-1-1
2-0-0
11-1-0
13-2-0
14-3-0
16-4-0
18-2-1
25-3-1
29-4-1
31-5-1
32-5-0
39-6-0
35-6-1
36-7-1
37-8-1
40-9-1
42-7-0
48-8-0
49-9-0
45-10-1
50-11-1
53-10-0
57-11-0
59-12-0
54-12-1
55-13-1
56-14-1
60-15-1
65-13-0
62-16-1
63-17-1
64-18-1
68-19-1
72-14-0
76-15-0
77-16-0
79-17-0
80-18-0
85-19-0
86-20-0
87-21-0
88-22-0
90-23-0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment