<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Eyup Saral on Medium]]></title>
        <description><![CDATA[Stories by Eyup Saral on Medium]]></description>
        <link>https://medium.com/@eyupsaral?source=rss-eac22e117298------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*dCTGU5yKiWSptxMi.jpg</url>
            <title>Stories by Eyup Saral on Medium</title>
            <link>https://medium.com/@eyupsaral?source=rss-eac22e117298------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 08:05:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@eyupsaral/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Dynamic Multi-Schema Support in GORM with a Custom Plugin (PostgreSQL + Golang)]]></title>
            <link>https://medium.com/@eyupsaral/dynamic-multi-schema-support-in-gorm-with-a-custom-plugin-postgresql-golang-a9433cd0995b?source=rss-eac22e117298------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9433cd0995b</guid>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[gorm]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[schema]]></category>
            <dc:creator><![CDATA[Eyup Saral]]></dc:creator>
            <pubDate>Wed, 23 Jul 2025 19:22:18 GMT</pubDate>
            <atom:updated>2025-07-23T19:22:18.391Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qSbLXRj9EFa2y6hL2Oxu_w.png" /></figure><p>— A Clean Way to Separate Tenants or Modules Using PostgreSQL Schemas</p><p>Handling multiple tenants or logical environments in PostgreSQL often involves using separate schemas. While GORM is a powerful ORM for Golang, it doesn’t provide built-in support for dynamically switching schemas at runtime. In this article, I’ll show you how I built a lightweight GORM plugin to enable dynamic schema routing — with zero change to your model definitions and full support for preloads.</p><h3><strong>The Problem: One Codebase, Multiple Schemas</strong></h3><p>In multi-tenant systems or modular enterprise architectures, separating data by schema can be an ideal pattern. However, using GORM with PostgreSQL makes this hard:</p><ul><li>You can’t dynamically switch schemas on the fly.</li><li>Preload and association queries often break without schema qualification.</li><li>JOINs require manual schema prefixing.</li></ul><p>So I built a <strong>GORM plugin</strong> to inject the schema name before each SQL operation automatically.</p><h3><strong>The Plugin</strong></h3><pre>const SchemaKey string = &quot;schema&quot;<br><br>type SchemaPlugin struct{}<br><br>func (p *SchemaPlugin) Name() string {<br> return &quot;SchemaPlugin&quot;<br>}<br><br>func (p *SchemaPlugin) Initialize(db *gorm.DB) error {<br> db.Callback().Create().Before(&quot;gorm:create&quot;).Register(&quot;add_schema_for_create&quot;, p.addSchemaToTable)<br> db.Callback().Update().Before(&quot;gorm:update&quot;).Register(&quot;add_schema_for_update&quot;, p.addSchemaToTable)<br> db.Callback().Delete().Before(&quot;gorm:delete&quot;).Register(&quot;add_schema_for_delete&quot;, p.addSchemaToTable)<br> db.Callback().Query().Before(&quot;gorm:query&quot;).Register(&quot;add_schema_for_query&quot;, p.addSchemaToTable)<br> return nil<br>}<br><br>func (p *SchemaPlugin) addSchemaToTable(tx *gorm.DB) {<br> val, ok := tx.Get(SchemaKey)<br> if !ok {<br>  return<br> }<br> schema, ok := val.(string)<br> if !ok || schema == &quot;&quot; {<br>  return<br> }<br><br> if tx.Statement.TableExpr != nil &amp;&amp; len(tx.Statement.TableExpr.SQL) &gt; 0 {<br>  parts := strings.SplitN(tx.Statement.TableExpr.SQL, &quot; &quot;, 2)<br>  base := parts[0]<br>  alias := &quot;&quot;<br>  if len(parts) &gt; 1 {<br>   alias = parts[1]<br>  }<br>  qualified := fmt.Sprintf(`&quot;%s&quot;.&quot;%s&quot;`, schema, base)<br>  if alias != &quot;&quot; {<br>   qualified = fmt.Sprintf(&quot;%s %s&quot;, qualified, alias)<br>  }<br>  tx.Statement.TableExpr.SQL = qualified<br>  tx.Statement.Table = base<br> } else if tx.Statement.Table != &quot;&quot; &amp;&amp; !strings.Contains(tx.Statement.Table, &quot;.&quot;) {<br>  tx.Statement.Table = fmt.Sprintf(`&quot;%s&quot;.%s`, schema, tx.Statement.Table)<br> }<br>}</pre><h3><strong>How to Use It</strong></h3><p>Initialization:</p><pre>db, err := gorm.Open(postgres.Open(dsn), &amp;gorm.Config{})<br>if err != nil {<br> log.Fatal(err)<br>}<br><br>db.Use(&amp;schema.SchemaPlugin{}) // Register the plugin</pre><p>Scoped Schema Setter:</p><pre>func WithSchema(schemaName string) func(*gorm.DB) *gorm.DB {<br> return func(tx *gorm.DB) *gorm.DB {<br>  tx.Set(schema.SchemaKey, schemaName)<br>  return tx<br> }<br>}</pre><p>Example Query Usage:</p><p>You can dynamically inject the schema at runtime using Scopes, and it works seamlessly with Preload.</p><pre>tx := r.db.WithContext(ctx).Model(&amp;entity.User{}).<br>    Scopes(gormdb.WithSchema(helper.GetSchema(ctx))).<br>    Preload(&quot;UserRoles&quot;).<br>    Preload(&quot;UserSettings&quot;)</pre><p>Limitations:</p><ul><li>You still need to <strong>manually qualify schema in raw SQL JOINs</strong>, as GORM doesn’t rewrite those.</li></ul><p>Benefits:</p><ul><li>Clean integration with GORM’s callback system.</li><li>No changes to model structs or table annotations.</li><li>Schema-awareness is fully transparent to your service logic.</li><li>Compatible with all major GORM features (Preload, Scopes, AutoMigrate, etc.).</li></ul><pre> ┌──────────────┐        ┌──────────────┐<br> │ Request      │ ─────▶ │ Context      │<br> │ (with tenant)│        └────┬─────────┘<br> └──────────────┘             │<br>                              ▼<br>                   ┌────────────────────┐<br>                   │ WithSchema(scope)  │<br>                   └────┬───────────────┘<br>                        ▼<br>              ┌──────────────────────────┐<br>              │  SchemaPlugin (GORM)     │<br>              └─────────┬────────────────┘<br>                        ▼<br>              ┌──────────────────────────┐<br>              │  SELECT * FROM &quot;tenant1&quot;.users │<br>              └──────────────────────────┘</pre><h3>Final Thoughts</h3><p>If you’re using GORM and need dynamic schema support (multi-tenancy, environment separation, modularity), this pattern is minimal, clean, and robust.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9433cd0995b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Go New Log Creator (logtor)]]></title>
            <link>https://medium.com/@eyupsaral/go-new-log-creator-logtor-d84bdc50db96?source=rss-eac22e117298------2</link>
            <guid isPermaLink="false">https://medium.com/p/d84bdc50db96</guid>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[log-creator]]></category>
            <category><![CDATA[interfaces]]></category>
            <category><![CDATA[go]]></category>
            <dc:creator><![CDATA[Eyup Saral]]></dc:creator>
            <pubDate>Sun, 12 Nov 2023 14:35:27 GMT</pubDate>
            <atom:updated>2023-11-12T14:35:27.505Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AaDzmyVvwIXOzWw4I3R_Yg.png" /></figure><p>Hello everyone,<br>Today I will introduce you the Log Creator (logtor) package that I just finished. Log Creator (logtor) allows you to log to different output environments (console, file, broker (kafka), etc). If you want more, you can create your own output environments through the functions defined in the interface. One example I can think of is HTTP output. <br>One of the beauties of the Go language is that you can create as many log creators as you want with the “interface” that acts like a chameleon and continue to use them through a single variable. <br>I would appreciate your comments and any problems or difficulties you encounter in use.</p><p><a href="https://github.com/Eyup-Devop/logtor">GitHub - Eyup-Devop/logtor: logtor is a package that allows you to save log records with different outputs. You can make changes to the running application. You can log your operations according to log levels.</a></p><p>Simple usage</p><pre>package main<br><br>import (<br> &quot;github.com/Eyup-Devop/logtor&quot;<br> &quot;github.com/Eyup-Devop/logtor/creators&quot;<br> &quot;github.com/Eyup-Devop/logtor/types&quot;<br>)<br><br>func main() {<br> console, _ := creators.NewBaseCreator(&quot;Console&quot;, 3, 5)<br><br> newLogtor := logtor.NewLogtor()<br> newLogtor.AddLogCreators(console)<br> newLogtor.SetLogLevel(types.TRACE)<br> newLogtor.LogIt(types.INFO, &quot;Example Info&quot;)<br>}</pre><p>Have a nice day</p><p>Eyüp SARAL<br>Project Manager</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d84bdc50db96" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Clickhouse for Kafka Consumer]]></title>
            <link>https://medium.com/@eyupsaral/using-clickhouse-for-kafka-consumer-7b948b8acc1b?source=rss-eac22e117298------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b948b8acc1b</guid>
            <dc:creator><![CDATA[Eyup Saral]]></dc:creator>
            <pubDate>Fri, 03 Nov 2023 21:59:07 GMT</pubDate>
            <atom:updated>2023-11-03T21:59:07.184Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1VKQhjkK6QkPTTDOh2rfpQ.png" /></figure><p>Hello Everyone,</p><p>Today, I will try to explain how you can save your json messages saved on Kafka as a table in clickhouse database.</p><p>First of all, I think that everyone (<em>nearly</em>) knows what <strong>Kafka </strong>or <strong>Redpanda </strong>is for. We don’t want to get bored with redundancy of words and get bored before we get to what we really need to learn.</p><p>Suppose we have json messages stored on <strong>Kafka</strong>. For example, we can use the “<em>headers</em>” part of http requests.</p><pre>{<br>  &quot;accept&quot;: [<br>    &quot;*/*&quot;<br>  ],<br>  &quot;accept-encoding&quot;: [<br>    &quot;gzip, deflate, br&quot;<br>  ],<br>  &quot;accept-language&quot;: [<br>    &quot;en-US,en;q=0.9&quot;<br>  ],<br>  &quot;host&quot;: [<br>    &quot;example.com&quot;<br>  ],<br>  &quot;referer&quot;: [<br>    &quot;https://example.com/&quot;<br>  ],<br>  &quot;content-length&quot;: [<br>    &quot;212&quot;<br>  ],<br>  &quot;user-agent&quot;: [<br>    &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36&quot;<br>  ]<br>}</pre><p>Let’s decide how to save this data in the table. <br>First, let’s import this data on <strong>Kafka </strong>using <strong>Kafka Consumer</strong>, which is ready to use on <strong>Clickhouse</strong>. We have two different ways for this:<br>1. <strong>JSONEachRow</strong><br>2. <strong>JSONAsString</strong><br>Let’s explain the difference between the two. <br>In the first one, if you have a ready-made data type that corresponds to each table field, you can use <strong>JSONEachRow </strong>to automatically consume and automatically save messages to the table you specify.<br>In the second one, things are a bit complicated. With the json data we have, you can automatically save the data to the table we specify using ready-to-use JSON functions on Clickhouse.</p><pre>CREATE TABLE default.headers_q<br>(<br>    all String<br>)<br>ENGINE = Kafka<br>SETTINGS kafka_broker_list = &#39;kafka-0:9093&#39;,<br> kafka_topic_list = &#39;topic_name&#39;,<br> kafka_group_name = &#39;topic_group&#39;,<br> kafka_format = &#39;JSONAsString&#39;,<br> kafka_thread_per_consumer = 0,<br> kafka_num_consumers = 1;</pre><p>I’m not going to explain all of this. Those who are interested can find the relevant parts online or on Clickhouse’s official website. The important thing for us is to connect to the Kafka server on the correct port. For this</p><p><strong>kafka.yaml or redpanda.yaml<br></strong>in the file</p><p><strong>advertised_kafka_api:<br> — address: kafka-0.<br> port: 9093</strong></p><p>Let’s make sure we write the part correctly. Because <strong>Clickhouse </strong>will receive the data over Kafka with this information. The other part we need to pay attention to is “<strong><em>kafka_topic_list</em></strong>”, that is, we write the topic information that we will read the messages correctly in this section and in this way, we receive Kafka messages from the Kafka server and temporarily transfer them to Clickhouse.</p><p>Finally, it’s time to create our tables where we can visually access the data via Clickhouse. This part will be the most fun part.</p><p>Let’s create a few different tables according to the sample json data above. <br>1.Create a field according to the KEYs in the header information and save the data. The easy part of this is <strong>JSONEachRow</strong>, but we can still perform this operation using JSON functions. What if the data fields in the headers are not fixed and are increasing and decreasing, then the table we have created will not meet our needs. Or if we only want the relevant fields, it will work for us. Let’s move on to our second type table.<br>2. Let’s save each KEY in the header information as a new row in our table. In this section an id can be used to distinguish the other header information from each other. I leave that part to you.</p><p>Let’s create our first table example. I’m going to be a bit lazy and create a few fields that I might need.<br>In this section, it will be good to talk about what we need to save the data in the table that we created above to temporarily hold kafka messages. <br>In order to save the data from the table where we temporarily keep the messages in the table we will use, we need the table itself and the VIEW where we will process this json data.</p><pre>CREATE TABLE default.headers<br>(<br> content_length Int32,<br> user_agent String,<br> host String<br>)<br>ENGINE = MergeTree<br>PRIMARY KEY (user_agent)<br>SETTINGS index_granularity = 8192;</pre><p>Daha sonra bu tabloya verileri aktarmak ve json verisini işlemek için VIEW’a ihtiyacımız olduğunu belirtmiştik. Birinci tip tabloya yani yukarıdaki tabloya veri aktarmak için Her bir field için json verisini ayıklamamız gerekecek. Veri tipine göre farklılık gösteren Clickhouse fonksiyonları bulunmaktadır. Biz bunların içinden JSONExtractInt ve JSONExtractString fonksiyonlarını kullanacağız.</p><pre>CREATE MATERIALIZED VIEW default.headers_mv TO default.headers<br>AS<br>SELECT<br> JSONExtractInt(all, &#39;content-length&#39;, 1) AS content_length,<br> JSONExtractString(all, &#39;user-agent&#39;) AS user_agent,<br> JSONExtractString(all, &#39;host&#39;,1) AS host<br>FROM default.headers_q;</pre><p>If the json data we have consists of nested data, you can write each element in order.</p><p>Like;</p><pre>JSONExtractString(all, &#39;headers&#39;, &#39;request&#39;, &#39;user_agent&#39;)</pre><p>If the last data we will use is in an array, we can save the element starting from 1. If we want to save all the data belonging to the array, we should not use the index number part.</p><p>Like;</p><pre>JSONExtractString(all, &#39;headers&#39;, &#39;request&#39;, &#39;user_agent&#39;,1)</pre><p>Now let’s create our second table and its VIEW</p><pre>CREATE TABLE default.headers_row<br>(<br> key_field String,<br> value_field String<br>)<br>ENGINE = MergeTree<br>PRIMARY KEY key_field<br>SETTINGS index_granularity = 8192;</pre><p>For the header Json data we have, we will create a separate row for each Key and save its value in the other field. To do this we need to use the “arrayJoin” and “JSONExtractArrayRaw” functions. With this function, it will be processing for each array element in the section in the json data we have specified.</p><pre>CREATE MATERIALIZED VIEW default.headers_row_mv TO default.headers_row<br>AS<br>SELECT<br> tupleElement(arrayJoin(JSONExtractKeysAndValues(all,&#39;String&#39;)),1) AS key_field, <br> tupleElement(arrayJoin(JSONExtractKeysAndValues(all,&#39;String&#39;)),2) AS value_field <br>FROM default.headers_q;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1VKQhjkK6QkPTTDOh2rfpQ.png" /></figure><p>You can use same id value for each row using “<strong>JSONExtractString(`all`, ‘id’) AS id</strong>”, if you have.</p><p>Finally, it is useful to check how you get outputs with your sample data before creating your tables as in the examples I have given above. We do not always get the result we want.</p><p>Good work to everyone, thanks for reading. You can contact me if you have any questions.</p><p>Eyüp SARAL<br>Project Manager,</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b948b8acc1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kafka Consumer using Go with Confluent Kafka]]></title>
            <link>https://medium.com/@eyupsaral/kafka-consumer-using-go-with-confluent-kafka-f8d17d707ac3?source=rss-eac22e117298------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8d17d707ac3</guid>
            <category><![CDATA[kafka-consumer]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[go-interfaces]]></category>
            <category><![CDATA[dependency-injection]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[Eyup Saral]]></dc:creator>
            <pubDate>Sun, 09 Jul 2023 07:10:30 GMT</pubDate>
            <atom:updated>2023-07-09T07:10:30.067Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CcWP4RFV6cx21J58UmH26g.jpeg" /><figcaption>Depends on Point of View</figcaption></figure><p>Good day everyone,</p><p>Instead of using fancy words or detailed explanations, I will provide a short text about the topic. In this text, I will demonstrate how to process Kafka messages and use interfaces in Go.</p><p>Let’s get started.</p><p>Firstly, creating independent code sections within your software will greatly assist you when your project grows and becomes more complex. In the Go language, you can achieve this by using either the struct feature or the “interface” feature if you have multiple structs with the same functionality.</p><pre>func NewConsumer(brokerList string, topicList []string, groupID string, writer MessageWriter) *KafkaConsumer {<br>    return &amp;KafkaConsumer{<br>        brokerList: brokerList,<br>        topicList:  topicList,<br>        groupID:    groupID,<br>        writer:     writer,<br>        run:        true,<br>        consume:    false,<br>    }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CcWP4RFV6cx21J58UmH26g.jpeg" /></figure><p>In the above code, we are creating a new KafkaConsumer. As you may have noticed, the NewConsumer receives all the data it needs as parameters from the outside. This allows you to simply change the parameters in the future stages or subsequent fixes.</p><p>The “writer MessageWriter” parameter in the NewConsumer function is an interface structure.</p><pre>type MessageWriter interface {<br>    WriteMessage(*string, interface{}) error<br>}<br><br>type DefaultMessageWriter struct{}<br><br>func (d DefaultMessageWriter) WriteMessage(topic *string, message interface{}) error {<br>    fmt.Printf(&quot;Topic: %s, Message: %+v\n&quot;, *topic, message)<br>    return nil<br>}</pre><p>The reason for specifying it this way is because I don’t want Kafka message processing to be dependent on the consumer code. For example, there are many different logging packages, all of which perform the core function of logging, but what you want is to receive and store these generated logs in the format and location of your choice. Instead of modifying the package’s code to format the logs, you can use different struct types that contain the same functionality to format and store the logs as you desire. Therefore, I wanted to process Kafka messages in the desired way using the “writer”.</p><p>To avoid an error, I have added a default “writer” to the code.</p><p>After creating the KafkaConsumer, we will add the section where we configure the initial settings.</p><pre>func (kc *KafkaConsumer) Init() error {<br>    c, err := kafka.NewConsumer(&amp;kafka.ConfigMap{<br>        &quot;bootstrap.servers&quot;:     kc.brokerList,<br>        &quot;broker.address.family&quot;: &quot;v4&quot;,<br>        &quot;group.id&quot;:              kc.groupID,<br>        &quot;auto.offset.reset&quot;:     &quot;earliest&quot;,<br>    })<br>    if err != nil {<br>        return err<br>    }<br>    kc.consumer = c<br>    kc.consumer.SubscribeTopics(kc.topicList, nil)<br>    if kc.writer == nil {<br>        kc.writer = &amp;DefaultMessageWriter{}<br>    }<br>    go kc.initConsume()<br>    return nil<br>}</pre><p>We are configuring the connection to the <em>server</em> and specifying which <em>topics</em> we will consume messages from.</p><p>Finally, we add the message reading process within a loop that we will repeat continuously but also have the ability to stop at any time.</p><pre>func (kc *KafkaConsumer) initConsume() {<br>    sigchan := make(chan os.Signal, 1)<br>    signal.Notify(sigchan, syscall.SIGINT, syscall.SIGTERM)<br><br>    for kc.run {<br>        for kc.consume {<br>            select {<br>            case sig := &lt;-sigchan:<br>                fmt.Printf(&quot;Caught signal %v: terminating\n&quot;, sig)<br>                kc.run = false<br>                kc.consume = false<br>            default:<br>                ev := kc.consumer.Poll(100)<br>                if ev == nil {<br>                    continue<br>                }<br>                switch e := ev.(type) {<br>                case *kafka.Message:<br>                    kc.writer.WriteMessage(e.TopicPartition.Topic, string(e.Value))<br>                case kafka.Error:<br>                    // Errors should generally be considered<br>                    // informational, the client will try to<br>                    // automatically recover.<br>                    fmt.Fprintf(os.Stderr, &quot;%% Error: %v: %v\n&quot;, e.Code(), e)<br>                    if e.Code() == kafka.ErrAllBrokersDown {<br>                        kc.run = false<br>                        kc.consume = false<br>                    }<br>                default:<br>                    fmt.Printf(&quot;Ignored %v\n&quot;, e)<br>                }<br>            }<br>        }<br>    }<br>}</pre><p>We don’t start the message consuming process immediately. We initiate it when the system is ready.</p><pre>func (kc *KafkaConsumer) StartConsume() error {<br>    fmt.Println(&quot;Starting consumer&quot;)<br>    kc.consume = true<br>    return nil<br>}<br><br>func (kc *KafkaConsumer) StopConsume() error {<br>    fmt.Println(&quot;Stopping consumer&quot;)<br>    kc.consume = false<br>    return nil<br>}<br><br>func (kc *KafkaConsumer) Close() {<br>    fmt.Println(&quot;Closing consumer&quot;)<br>    kc.run = false<br>    kc.consume = false<br>    kc.consumer.Close()<br>}</pre><p>Allowing the flexibility to stop or shut down the message processing whenever desired is important. Including the capability to shut down the process via an HTTP server in the sample project below.</p><blockquote><a href="https://github.com/Eyup-Devop/kafka-consumer">https://github.com/Eyup-Devop/kafka-consumer</a></blockquote><p>Thansk for reading…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8d17d707ac3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>