Skip to Content
AI applicata allo sviluppo Java aziendale (Italian Edition)
book

AI applicata allo sviluppo Java aziendale (Italian Edition)

by Alex Soto Bueno, Markus Eisele, Natale Vinto
November 2025
Intermediate to advanced
430 pages
11h 25m
Italian
O'Reilly Media, Inc.
Content preview from AI applicata allo sviluppo Java aziendale (Italian Edition)

Capitolo 7. Come accedere al modello di inferenza con Java

Questo lavoro è stato tradotto utilizzando l'AI. Siamo lieti di ricevere il tuo feedback e i tuoi commenti: translation-feedback@oreilly.com

Nel capitolo precedente, " ", hai imparato a sviluppare ed esporre un modello che produce dati usando un'API di inferenza. Quel capitolo copriva solo metà dello sviluppo: hai imparato solo come esporre il modello, ma come si fa a usare questo modello da un altro servizio? Ora è il momento di coprire l'altra metà, che riguarda la scrittura del codice per usare l'API.

In questo capitolo completeremo l'esempio precedente. Creerete client Java per utilizzare l'API Fraud Inference per rilevare se una determinata transazione può essere considerata fraudolenta. Vi mostreremo anche come scrivere client per Spring Boot e Quarkus utilizzando sia REST che gRPC.

Connessione a un'API di inferenza con Quarkus

Quarkus offre due metodi per implementare i client REST:

  • Il client REST Jakarta è l'approccio standard Jakarta EE per interagire con i servizi RESTful.

  • Il client REST MicroProfile offre un modo sicuro per chiamare servizi RESTful su HTTP, usando il più possibile le specifiche Jakarta RESTful Web Services. Il client REST è definito come un'interfaccia Java, il che lo rende sicuro e fornisce la configurazione di rete con le annotazioni Jakarta RESTful Web Services.

In questa sezione svilupperai un servizio Quarkus che usa il modello Fraud Detection usando il client MicroProfile REST.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Integrare l'intelligenza artificiale nei processi aziendali

Integrare l'intelligenza artificiale nei processi aziendali

Thomas Nield
Ingegneria dei prompt per LLMs

Ingegneria dei prompt per LLMs

John Berryman, Albert Ziegler
Modelli di progettazione dell'IA generativa

Modelli di progettazione dell'IA generativa

Valliappa Lakshmanan, Hannes Hapke

Publisher Resources

ISBN: 0642572279868