Skip to content

Commit 4e335da

Browse files
committed
DOCSP-31430: Explain new API benefits (#436)
* DOCSP-31430: Explain new API benefits * rewording * build * DOCSP-31430: Explain new API benefits * rewording * build * addressing feedback * vale suggestions * typo * typo * tech feedback * adding pojos * wording fix (cherry picked from commit 7286a63)
1 parent d9d28c3 commit 4e335da

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

source/legacy.txt

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ Migrate from the Legacy API
1616
Overview
1717
--------
1818

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+
2123

2224
The legacy API, packaged as the ``mongodb-driver-legacy`` JAR, contains
2325
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,
3739
always check for any other differences in options and return values before
3840
moving it to production.
3941

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+
4068
API Changes
4169
-----------
4270

0 commit comments

Comments
 (0)