Skip to content

Commit 3eebe17

Browse files
committed
release: 3.2.0-1.7
2 parents 63dc39d + 02ba3f9 commit 3eebe17

12 files changed

+710
-90
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## [SNAPSHOT]
44

5+
## [3.2.0-1.6/7]
6+
- Administration function namespace
7+
- Test context simplification
8+
- Test migrations
9+
510
## [3.2.0-1.5]
611

712
- Kafka Client version bump
@@ -32,4 +37,3 @@
3237
- basic `consumer` + `process loop`
3338
- async consumer
3439
- serialization helpers
35-

README.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,22 @@ You can set either :threads-by-topic or :threads option (if both are set, :threa
124124
(fc/poll-loops consumer-cfg print-record {"topic1" 1 "topic2" 4} {:commit-policy :never})
125125
```
126126

127+
128+
#### Administration
129+
130+
The `felice.admin` provide interface to `Admin` kafka class, used to perform administration
131+
tasks on your cluster:
132+
133+
```clojure
134+
(require [felice.admin :as fa])
135+
136+
(with-open [ac (fa/admin-client {:bootstrap.servers "localhost:9092"})]
137+
(fa/list-topics ac) ;;=> #{"foo" "bar"}
138+
)
139+
```
140+
See all the administration methods [on documentation page](https://oscaro.github.io/felice/#felice.admin).
141+
142+
127143
#### Partitionning
128144

129145
The partitionner used by a producer can be set using this [configuration key](https://kafka.apache.org/documentation/#producerconfigs_partitioner.class).
@@ -143,7 +159,7 @@ There is a comment at the bottom of the felice.producer namespace mimiking the d
143159

144160
## License
145161

146-
Copyright © 2018 - 2022 Oscaro
162+
Copyright © 2018 - 2024 Oscaro
147163

148164
This program and the accompanying materials are made available under the
149165
terms of the Eclipse Public License 2.0 which is available at

dev/user.clj

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
(ns user
22
(:require [felice.consumer :as fc]
3-
[felice.producer :as fp]))
3+
[felice.producer :as fp]
4+
[felice.admin :as fa]
5+
[clojure.reflect :as r]
6+
[clojure.pprint :refer [print-table]]))
47

5-
;;; Playground
8+
(defn- dump-object-methods [o]
9+
(print-table (:members (r/reflect o))))
10+
11+
(def broker "localhost:9092")

docker-compose.yml

+2-20
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,8 @@
11
version: '3.7'
22

33
services:
4-
zookeeper:
5-
image: wurstmeister/zookeeper
6-
container_name: zookeeper
7-
hostname: zookeeper-docker
8-
expose:
9-
- "2181"
10-
114
kafka:
12-
image: wurstmeister/kafka
135
container_name: kafka
14-
hostname: kafka-docker
15-
depends_on:
16-
- zookeeper
6+
image: vectorized/redpanda:v23.3.10
177
ports:
18-
- "9092:9092"
19-
expose:
20-
- "9093"
21-
environment:
22-
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:9092
23-
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
24-
KAFKA_LISTENERS: INSIDE://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092
25-
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
26-
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
8+
- 9092:9092

project.clj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
(defproject com.oscaro/felice "3.2.0-1.6"
1+
(defproject com.oscaro/felice "3.2.0-1.7"
22
:description "Felice is client library for Apache Kafka in Clojure"
3-
:url "https://gitlab.oscaroad.com/it-dev/felice"
3+
:url "https://github.com/oscaro/felice"
44
:license {:name "Eclipse Public License"
55
:url "http://www.eclipse.org/legal/epl-v10.html"}
66
:plugins [[lein-marginalia "0.9.1"]]

0 commit comments

Comments
 (0)