Skip to content
Lucas Lessa
Voltar para as notícias
Microsoft FabricGAImpacto: Médio

Fabric JDBC driver supports high concurrency with Spark SQL

The Microsoft Fabric JDBC driver now stably runs concurrent Spark SQL workloads from Java applications.

O que mudou

The Microsoft Fabric JDBC driver now has general availability support for high concurrency in Spark SQL workloads coming from Java applications. ### Use cases Imagine you have a legacy Java application or a microservice that needs to query large-scale data in Fabric simultaneously. With this update, you can trigger multiple queries in parallel without connection bottlenecks. - Run multiple Spark SQL queries from Java - Integrate external applications with Fabric data ### How to use java import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; public class FabricConcurrencyExample { public static void main(String[] args) { String url = "jdbc:spark://your_workspace.fabric.microsoft.com:443/default;transportMode=http;ssl=1"; try (Connection conn = DriverManager.getConnection(url, "token", "your_access_token"); Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("SELECT * FROM my_table LIMIT 10")) { while (rs.next()) { System.out.println(rs.getString(1)); } } catch (Exception e) { e.printStackTrace(); } } } What happens in this code: 1. Establishes the JDBC connection to the Fabric endpoint using HTTP transport and SSL parameters. 2. Creates a statement to send commands to Spark SQL. 3. Executes the query concurrently with other application instances. ### Limitations and requirements Available as Generally Available (GA). You must use the updated JDBC driver version for Fabric Data Engineering and properly configure access credentials.

Ver nota oficial do Microsoft Fabric

JDBC driver high concurrency (Generally Available)

Resumo e explicação gerados por IA a partir da release note oficial. Em caso de dúvida, a documentação oficial da plataforma prevalece.

Relacionadas