@@ -16,8 +16,10 @@ Migrate from the Legacy API
16
16
Overview
17
17
--------
18
18
19
- In this section, you can identify the changes you need to make to migrate from
20
- the legacy API to the current API.
19
+ On this page, you can identify the changes you must make to migrate from the
20
+ legacy API to the current API. You can also learn about features unique to
21
+ the current {+driver-short+} and the benefits of migrating to the new API.
22
+
21
23
22
24
The legacy API, packaged as the ``mongodb-driver-legacy`` JAR, contains
23
25
the legacy synchronous Java driver and uses naming conventions used in earlier
@@ -37,6 +39,32 @@ In addition to updating your application to handle any necessary changes,
37
39
always check for any other differences in options and return values before
38
40
moving it to production.
39
41
42
+ Current API Benefits
43
+ --------------------
44
+
45
+ You can continue to use the legacy API with each new {+mdb-server+} release.
46
+ However, the legacy API does not support any updates introduced in {+mdb-server+}
47
+ 3.0 or later. Additionally, the legacy API lacks support for certain features
48
+ of the current {+driver-short+}. Some features only available in the non-legacy
49
+ API include:
50
+
51
+ - **Change streams**, a {+mdb-server+} feature designed to monitor real-time
52
+ changes to a single collection, database, or deployment
53
+ - **Multi-document ACID transactions**, which ensure atomicity of reads and
54
+ writes to multiple documents and allow for transactions across multiple
55
+ operations, collections, databases, documents, and shards
56
+ - **Time series collections**, which store sequences of measurements over a
57
+ period of time and improve query efficiency for time series data
58
+ - **Queryable Encryption**, which allows you to encrypt sensitive workloads
59
+ and to query the encrypted data
60
+ - **Java records**, or concise Java classes that separate business logic from
61
+ data representation and reduce boilerplate code
62
+ - **Native POJO support**, which provides automatic or custom mapping between
63
+ MongoDB documents and Java objects
64
+
65
+ To learn about more features of the current API, see :ref:`java-whats-new`.
66
+
67
+
40
68
API Changes
41
69
-----------
42
70
0 commit comments