Skip to content

Fetching user message history as a UDF #186

@nullishamy

Description

@nullishamy

Hey, working on getting Osprey deployed for a platform but just have a query

One common way we might want to detect spam is by having something along the lines of:

messages = fetch_users_messages(limit=10)
similarity = compute_similarity(messages)
if similarity > 0.8:
  ban_user()

However I'm not 100% sure what the best way to achieve this would be using Osprey.

This is primarily because I don't see a documented or implemented way for UDFs to query Druid for the message history?

Is the best solution just to put Redis/memcached in front of Osprey and query that, or is there some built in way to ask for the info from Druid itself?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions