Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#3535] Send messages to Whatsapp Cloud #3615

Merged
merged 5 commits into from
Aug 29, 2022

Conversation

chrismatix
Copy link
Contributor

resolves #3535

Christoph Pröschel added 2 commits August 19, 2022 16:09
@chrismatix
Copy link
Contributor Author

Uploading image.png…
It works!

@@ -184,7 +184,7 @@ void canSendTagEvents() throws Exception {
private static StompSession connectToWs(int port) throws ExecutionException, InterruptedException {
final WebSocketStompClient stompClient = new WebSocketStompClient(new StandardWebSocketClient());
MappingJackson2MessageConverter messageConverter = new MappingJackson2MessageConverter();
ObjectMapper objectMapper = new ObjectMapper().setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also refactored this deprecated import

@chrismatix chrismatix marked this pull request as ready for review August 24, 2022 09:49
@@ -88,6 +88,7 @@ public List<KeyValue<String, SpecificRecordBase>> sendMessage(SendMessageRequest
results.add(KeyValue.pair(getId(errorPayload).toString(), errorPayload));
}
updateDeliveryState(message, DeliveryState.FAILED);
results.add(KeyValue.pair(message.getId(), message));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes a sofar unknown bug

@Configuration
public class MetaConfig {
@Bean
@Qualifier("metaObjectMapper")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far the meta-object mapper has been the same as ours in terms of config. It's better however to explicitly split them.

.build())
));

TimeUnit.SECONDS.sleep(5);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with the following attributes

kafka.commit-interval-ms=0
kafka.cache.max.bytes=0

You should not need to wait that long, 100ms will be enough? Also there is other way to get around the sleep time?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tested this and it doesn't make a difference. I think that this time is genuinely spent on catching up with the streams app.

@chrismatix chrismatix merged commit dc5179f into develop Aug 29, 2022
@chrismatix chrismatix deleted the feat/3535-whatsapp-send-messages branch August 29, 2022 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Whatsapp cloud source: Send messages
2 participants