Git Product home page Git Product logo

gomxml-kafka's Introduction

KensoBI's GOM XML to Kafka Microservice

.NET library and microservice to extract features, characteristics, and measurements from XML files generated by GOM Inspect.

Producer Service Will:

  • Monitor a specified folder for XML files
  • Parse GOM XML and extract primitive elements with measurements
  • Produce and send Kafka messages for each feature
  • Archive processed file

Features:

  • Runs in a container
  • .NET class model for GOM XML serialization
  • Lightweight and extendable
  • Schema registry integration with Avro serialization using Chr.Avro
  • Commercial support offered by Kenso Software

Getting Started

Open docker-compose.yml and update volume mapping. Map /processing directory to location where your XML files are locatted:

    volumes:
      - d:\Processing:/processing

Make sure you have Docker installed and configured. After that, you can run the below command from the root directory and get started immediately.

docker-compose up

The following apps will be started for you:

  • GOM XML to Kafka Producer
  • Kafka
  • Zookeeper
  • Schema Registry
  • Control Center

You can also start it from Visual Studio. You will need VS 2022 and .NET 7 SDK.

Getting Help

If you have any questions or feedback:

Your feedback is always welcome!

License

This software is distributed under Apache License 2.0.

Notes

Copyright (c) 2023 Kenso Software

KAFKA is a registered trademark of The Apache Software Foundation. GOM Inspect is a registered trademark of Carl Zeiss GOM Metrology GmbH. gomxml-kafka has no affiliation with and is not endorsed by Carl Zeiss GOM Metrology GmbH nor The Apache Software Foundation.

gomxml-kafka's People

Contributors

mrtomeq avatar

Stargazers

Krzysztof Tomecki avatar

Watchers

 avatar

gomxml-kafka's Issues

File not moving from processing to archive directory

  1. I placed the .xml file into the /processing directory
  2. The gomxml-producer console printed the message Reading file ....
  3. However, my file disappeared from the /processing directory and did not appear in the /archive directory.

New data showed up in my DB, so it's not an issue of file parsing or Kafka.

This is the docker-compose configuration for goxml-producer:

gomxml-producer:
    container_name: gomxml-producer
    image: kensobi/gomxml-producer
    build:
      context: .
      dockerfile: producer.Dockerfile
    restart: always
    volumes:
      - ./processing:/processing
      - ./archive:/archive
    environment:
      Kafka__ProducerSettings__BootstrapServers: kafka:29092
      Kafka__Topic: dev.kenso.gom.xml
      Kafka__SchemaRegistries: http://schema-registry:8081
      Kafka__NumPartitions: 2
      Kafka__ReplicationFactor: 1

I believe the issue may be related to this line:


Changing the value to /archive may resolve the issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.