congbobo184 commented on code in PR #501:
URL: https://github.com/apache/pulsar-site/pull/501#discussion_r1159947724


##########
docs/txn-advanced-features.md:
##########
@@ -0,0 +1,45 @@
+---
+id: txn-advanced-features
+title: Advanced features
+sidebar_label: "Advanced features"
+---
+
+You can use the following advanced features with transactions in Pulsar.
+
+## Ack batch messages
+
+If you want to acknowledge batch messages with transactions, set 
`acknowledgmentAtBatchIndexLevelEnabled` to `true` in the 
[`broker.conf`](https://github.com/apache/pulsar/blob/master/conf/broker.conf) 
or 
[`standalone.conf`](https://github.com/apache/pulsar/blob/master/conf/standalone.conf)
 file.
+
+
+```conf
+acknowledgmentAtBatchIndexLevelEnabled=true
+```
+
+This example enables batch messages ack in transactions in the consumer 
builder.
+
+```java
+Consumer<byte[]> consumer = pulsarClient
+    .newConsumer()
+    .topic(transferTopic)
+    .subscriptionName("transaction-sub")
+    .subscriptionInitialPosition(SubscriptionInitialPosition.Earliest)
+    .subscriptionType(SubscriptionType.Shared)
+    .enableBatchIndexAcknowledgment(true) // enable batch index acknowledgment
+    .subscribe();
+```
+
+## Enable authentication

Review Comment:
   yes, directs users to all methods as well. can use 
https://pulsar.apache.org/docs/next/security-overview/#authentication 



-- 
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