Hello! We are trying to get events in to redshift...
# support
f
Hello! We are trying to get events in to redshift in realtime and noticed this feature request regarding streaming (https://feature-request.rudderstack.com/feature-requests/p/support-for-real-time-analytics-with-amazon-redshift-streaming-ingestion) Is there something like this in the pipeline? Or is a rudderstack -> firehose -> redshift the only available route? Or is there a way to lower the sync to a smaller period than 30mins? (sorry lots of questions :O)
h
you will need a kafka/kinesis to stream
👌 1
f
excuse my ignorance, but is the rudderstack -> redshift sync doing anything special that we would need to watch out for/handle in an etl or such?
h
in what sense - it just bulk inserts (creates tables if they dont exist)
but redshift is real crappy with single/small inserts so 30 mins kind of makes sense the majority of the time
f
yeah i wasnt sure how the schema was being created, but it sounds like its handled by redshift
we wanted to read live data from redshift in order to provide real time metrics on client side events (when a user views a page for example)
h
it might not be optimal either in terms of compression schemes - you can alter that
yeah redshift is not optimal for any of that
f
but it sounds like maybe redshift isnt the best option?
h
rubbish query concurrency
can you tell I dont like redshift 🙂
f
haha, just a little 😄
h
we moved to clickhouse for these reasons
f
could you make recommend another?
right
wanted to avoid running our own clickhouse if we could avoid it though
h
and stream from rabbitmq for realtime analytics
yeah - we use Altinity
at a cost of course but redshift isnt free!
f
what does the rudderstack -> clickhouse integration look like, is it streamed?
h
rudderstack -> rabbitmq -> clickhouse
f
(also thankyou for the replies)
h
could have used kafka too but we know rabbit
f
its a few moving parts
h
depends on your scale - you could get away with something easier
you could use a transform to call an api to update postgres or whatever you have in place already
f
rudderstack doesnt offer vpc connectivity to postgres does it?
i think i might investigate rudderstack -> aws's rabbitmq -> altinity-cloud-anywhere
h
Not sure about postgres - would still be batch too
you would have to stand up an api which you would call from rudder....
f
thanks for the help!
h
good luck with it - you wont regret clickhouse if you go that route
f
im not seeing a rabbitmq desitnation in rudderstack?
h
no - I had to use a transform and rabbits http api - I would have gone for Kafka but that meant using a new supplier and doing a procurement dance
f
ah i see
h
you can just use aws msk
f
kinesis firehose? 😄
h
haha - clickhouse not got kinesis sink yet
clickohuse-cloud are building it for their exclusive use
if you just want counts of things eventbridge to dynamo
or do the aws dance - event bridge, lambda, dynamo and probably 10 other services
f
yeah seems like i would need rudderstack -> aws msk -> clickhouse
but its not as pricey as i thoguht
"if you just want counts of things eventbridge to dynamo" we need it to be sharded by tenant, which would mean middleware/etls
h
aha, click is perfect then
f
yeah i think so
last question i promise 😄
rudderstack -> msk -> clickhouse is going to result in the same schema im seeing in redshift?
table per event as well as tracks and identify tables. and the schema will be on malleable
h
yeah table per event, you can transform and get them into one
but better to use materialised views in click
f
im not against the schema it generates 🙂
having trouble setting up the kafka destination though
h
from rudder?
f
yeah
h
is public access on
f
hmm it's not, thanks for the nudge
👍 1
unfortunately even with the public access im still getting the mysterious error message
h
is avro format switched on?
f
it isn't no
i can also publish/consume using those credentials outside of rudderstack
with a valid hostname, username and port
the actual post to
https://api.rudderstack.com/workspaces/<redacted>/destinations/
is:
Copy code
{
  "name": "staging-kafka",
  "destinationDefinitionId": "<redacted>",
  "config": {
    "hostName": "<redacted>",
    "port": "9196",
    "topic": "<redacted>",
    "sslEnabled": false,
    "useSASL": true,
    "convertToAvro": false,
    "enableMultiTopic": false,
    "caCertificate": "",
    "oneTrustCookieCategories": [],
    "saslType": "sha512",
    "username": "<redacted>",
    "password": "<redacted>"
  }
}
(the password does have specical characters if that makes a difference). the response is:
Copy code
{
  "message": "[\" must NOT have additional properties\",\" must NOT have additional properties\",\"convertToAvro must be equal to constant\"]"
}
h
what is the source?
f
i tried without sources also, but trying with a js and a python sdk source
(type event stream)
i tried again with no sources and still no go
the properties part did make me think it was referring to the properties on the event, but surely if i dont specifiy a source and it still dopesnt work its something else? would love to be able to unblock on this. is it worth raising this again in the support channel?