Hi Cong,
I assume by "DDB" you mean the DynamoDB API. I.e., Alternator.
Yes, you can definitely share the same cluster for both CQL and DynamoDB APIs. Scylla can have both listening ports open at the same time,
and all the background work (compactions, repair, etc.) and underlying implementation (memory and disk use, etc.) are more-or-less the
same for both anyway.
What you should *not* do is attempt to access or modify the same table through the two APIs - e.g., create a table with the DynamoDB API and
then attempt to read it with the CQL API. Although technically this might be possible, we recommend against it because it may stop working if the
Alternator implementation changes in the future, and the low-level format of how Alternator stores data changes.
But if you want to use the same cluster for different DynamoDB and CQL tables - that's fine.
Of course, the usual caveats of running multiple workloads in the same cluster apply. For example, if one workload is a heavy
throughput-oriented workload (e.g., data ingestion or OLAP) and the other workload is latency-critical (e.g., OLTP), one may
hurt the performance of the other. The enterprise version of Scylla has some additional features to improve the performance
isolation between completely different workloads with different goals which happen to run on the same cluster.