Henri Kacadej
|
Proactive and passionate Backend Engineer with strong expertise in Java, Spring Boot, and enterprise-grade applications. Currently crafting scalable solutions as a Full-Stack Developer at Lufthansa Industry Solutions with expertise in microservices and cloud architecture.
public class PaymentService {
@Autowired
private TransactionRepository repo;
public void processPayment(Payment p) {
repo.save(p);
}
}
@RestController
@RequestMapping("/api/banking")
public class BankingController {
@GetMapping("/balance")
public ResponseEntity getBalance() {
return ResponseEntity.ok(service.getBalance());
}
}
@Configuration
@EnableEurekaClient
public class MicroserviceConfig {
@Bean
public RestTemplate restTemplate() {
return new RestTemplate();
}
}
@Entity
@Table(name = "transactions")
public class Transaction {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(nullable = false)
private BigDecimal amount;
}
@Component
public class KafkaProducer {
@Autowired
private KafkaTemplate template;
public void sendMessage(String topic, Object data) {
template.send(topic, data);
}
}