Git Product home page Git Product logo

Comments (5)

pgarbacki avatar pgarbacki commented on July 18, 2024

Secor supports this use case via subclassing MessageParser. You can configure a custom parser by setting the secor.message.parser.class param.

from secor.

mthssdrbrg avatar mthssdrbrg commented on July 18, 2024

Ah, you're right, I completely overlooked the parse(Message message) method, I'll give it a go and see if everything works as expected.

from secor.

mthssdrbrg avatar mthssdrbrg commented on July 18, 2024

For our use case it's actually not possible to transform the topic name in the parse method as the topic name is used in various places throughout Secor, for example for writing offsets to ZK, and slashes are not allowed in topic names. It might still work, but it feels more of a "fortunate" hack than a feature.

from secor.

pgarbacki avatar pgarbacki commented on July 18, 2024

Actually I think I know what you mean. Sorry about the confusion. I'm still not extremely excited about this kind of feature since it seems very specialized and I would prefer to keep secor code simple. As mentioned before, secor supports custom partition names for messages posted to a topic so you can control the subdirectory structure.

from secor.

mthssdrbrg avatar mthssdrbrg commented on July 18, 2024

Understandable. Perhaps another way to look at it would be to make it possible to exclude the topic name from the path. Would be configurable of course, but as you mentioned there's quite a lot of configuration parameters already :).

I'm gonna look at possible solutions during the coming week, and if I stumble upon a good solution I'll make a pull request and we can take it from there.

from secor.

Related Issues (20)

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.