Anonymitaet commented on a change in pull request #11801:
URL: https://github.com/apache/pulsar/pull/11801#discussion_r697064611



##########
File path: site2/docs/schema-understand.md
##########
@@ -474,6 +474,24 @@ Message<GenericRecord> msg = consumer.receive() ;
 GenericRecord record = msg.getValue();
 ```
 
+### Native Avro Schema
+
+When migrating or ingesting event/message data from external systems such as 
Kafka and Cassandra, the events are often already serialized in Avro format. 
The schemas have been validated and stored by those systems or a dedicated 
service such as a schema registry. In such cases, a Pulsar producer doesn't 
need to repeat the schema validation step when sending the ingested events to a 
topic. 
+Hence, we provide `Schema.NATIVE_AVRO` to turn an `org.apache.avro.Schema` 
object into a schema instance of Pulsar that accepts a serialized Avro payload 
without validating it against the schema specified.

Review comment:
       This sentence is too long, which affects the readability and makes it 
hard to understand. Can you revise it?

##########
File path: site2/docs/schema-understand.md
##########
@@ -474,6 +474,24 @@ Message<GenericRecord> msg = consumer.receive() ;
 GenericRecord record = msg.getValue();
 ```
 
+### Native Avro Schema
+
+When migrating or ingesting event/message data from external systems such as 
Kafka and Cassandra, the events are often already serialized in Avro format. 
The schemas have been validated and stored by those systems or a dedicated 
service such as a schema registry. In such cases, a Pulsar producer doesn't 
need to repeat the schema validation step when sending the ingested events to a 
topic. 

Review comment:
       ```suggestion
   When migrating or ingesting event or message data from external systems 
(such as Kafka and Cassandra), the events are often already serialized in Avro 
format. The schemas have been validated and stored by external systems or a 
dedicated service (such as a schema registry). In such cases, a Pulsar producer 
doesn't need to repeat the schema validation step when sending the ingested 
events to a topic. 
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to