Skip to content

Commit

Permalink
perf: adicionando cache com hazelcast e configuração para melhor perf…
Browse files Browse the repository at this point in the history
…ormance
  • Loading branch information
oLeoBarreto committed Feb 11, 2024
1 parent fa9cebf commit 7171b2d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast-spring</artifactId>
<version>5.3.6</version>
</dependency>

<!-- Test dependency's -->

Expand Down
8 changes: 7 additions & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
server:
port: ${SERVER_PORT:8080}
port: ${PORT:8080}
compression:
enabled: true
mime-types: application/json
min-response-size: 1024

spring:
datasource:
Expand All @@ -20,6 +24,8 @@ spring:
listener:
direct:
auto-startup: true
jackson:
default-property-inclusion: non_null

api:
security:
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/hazelcast.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
hazelcast:
network:
join:
multicast:
enabled: true

0 comments on commit 7171b2d

Please sign in to comment.